From abd8737128231252202cdad59cdd395a5641df7e Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Sun, 13 Jul 2008 07:43:26 +0000 Subject: [PATCH] Fixed crash when loading plugins built for MM:S 1.3 or older (API ver <= 9) --HG-- branch : sourcemm-1.4.4 extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/branches/sourcemm-1.4.4%40701 --- sourcemm/CPlugin.cpp | 2 +- sourcemm/changelog.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sourcemm/CPlugin.cpp b/sourcemm/CPlugin.cpp index e770749..8df7a6f 100644 --- a/sourcemm/CPlugin.cpp +++ b/sourcemm/CPlugin.cpp @@ -414,7 +414,7 @@ CPluginManager::CPlugin *CPluginManager::_Load(const char *file, PluginId source event != pl->m_Events.end(); event++) { - if ((*event).got_vsp) + if (pl->m_API->GetApiVersion() < 10 || (*event).got_vsp) { continue; } diff --git a/sourcemm/changelog.txt b/sourcemm/changelog.txt index e0917c7..4961de2 100644 --- a/sourcemm/changelog.txt +++ b/sourcemm/changelog.txt @@ -1,4 +1,6 @@ 2008/??/?? 1.4.4: + - Fixed a bug where loading plugins built for MM:S 1.3 or older (API ver <= 9) + would cause a crash. - Fixed a bug where loading plugins using VDF files caused Metamod:Source to crash on The Ship. - Fixed a bug where VDF files were opened by MM:S even if the .vdf extension