From 0932fc5081afda480e210fceadbb419c57788fd2 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Fri, 21 Jul 2006 12:30:31 +0000 Subject: [PATCH] 1.2.4 will be a bug-fix-alicious update :o Fixed bug where ISmmAPI::MetaFactory would return the wrong interface when trying to retrieve ISmmPluginManager. --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40238 --- sourcemm/CSmmAPI.cpp | 6 +++--- sourcemm/changelog.txt | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sourcemm/CSmmAPI.cpp b/sourcemm/CSmmAPI.cpp index 42b21ca..04a0ef9 100644 --- a/sourcemm/CSmmAPI.cpp +++ b/sourcemm/CSmmAPI.cpp @@ -145,15 +145,15 @@ void *CSmmAPI::MetaFactory(const char *iface, int *_ret, PluginId *id) return NULL; //first check ours... we get first chance! - if (strcmp(iface, MMIFACE_SOURCEHOOK)==0) + if (strcmp(iface, MMIFACE_SOURCEHOOK) == 0) { if (_ret) *_ret = IFACE_OK; return static_cast(static_cast(&g_SourceHook)); - } else if (strcmp(iface, MMIFACE_PLMANAGER)==0) { + } else if (strcmp(iface, MMIFACE_PLMANAGER) == 0) { if (_ret) *_ret = IFACE_OK; - return static_cast(static_cast(&g_SMConVarAccessor)); + return static_cast(static_cast(&g_PluginMngr)); } CPluginManager::CPlugin *pl; diff --git a/sourcemm/changelog.txt b/sourcemm/changelog.txt index f7f3a02..7bddf0c 100644 --- a/sourcemm/changelog.txt +++ b/sourcemm/changelog.txt @@ -4,6 +4,8 @@ - Fixed bug where Metamod:Source could load the wrong GameDLL and/or load more than one GameDLL. This issue occured in HL2 CTF, SourceForts, or any other mod that relied on files from another mod directory. + - Fixed bug where ISmmAPI::MetaFactory would return the wrong interface when trying to + retrieve ISmmPluginManager. - Fixed bug where returning false in Load() after adding a Metamod event listener or hooking a function could cause a crash instead of rejecting the plugin. - Fixed bug where trying to load Metamod:Source a second time as a SourceMM or Valve