From 05d2af1eefe8d251029dfede84b6a49d19888416 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Thu, 1 Jul 2010 02:43:22 -0500 Subject: [PATCH] Fixed problem on OBV where alternately loaded plugins (CreateInterface_MMS) could be incorrectly told they were on the OB engine (bug 4491, r=dvander). This only happened when there was more than one plugin that loaded this way. And the first plugin to load had to fail on OBV first so that OB could be tried. It was being permanently set to OB for future plugin loads and this caused problems. --- core/metamod_plugins.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/metamod_plugins.cpp b/core/metamod_plugins.cpp index daad723..1aa204b 100644 --- a/core/metamod_plugins.cpp +++ b/core/metamod_plugins.cpp @@ -465,6 +465,7 @@ CPluginManager::CPlugin *CPluginManager::_Load(const char *file, PluginId source { GlobVersionInfo.source_engine = SOURCE_ENGINE_ORANGEBOX; pl->m_API = fnLoad(&GlobVersionInfo, &info); + GlobVersionInfo.source_engine = SOURCE_ENGINE_ORANGEBOXVALVE; } #endif pl->m_UnloadFn = (METAMOD_FN_UNLOAD)dlsym(pl->m_Lib, "UnloadInterface_MMS");