From 7e5e57cad1f87c4e6a755f9c93f2d86a791a3a55 Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Sat, 12 Apr 2008 01:58:07 +0000 Subject: [PATCH] forgot to commit this --HG-- branch : sourcemod-1.0.x extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/sourcemod-1.0.x%402046 --- core/systems/ExtensionSys.cpp | 2 +- public/IExtensionSys.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/systems/ExtensionSys.cpp b/core/systems/ExtensionSys.cpp index 891105fc..fc85ae4d 100644 --- a/core/systems/ExtensionSys.cpp +++ b/core/systems/ExtensionSys.cpp @@ -1375,7 +1375,7 @@ void CExtensionManager::CallOnCoreMapStart(edict_t *pEdictList, int edictCount, for (iter=m_Libs.begin(); iter!=m_Libs.end(); iter++) { - if (SMINTERFACE_EXTENSIONAPI_VERSION > 3) + if ((*iter)->GetAPI()->GetExtensionVersion() > 3) { (*iter)->GetAPI()->OnCoreMapStart(pEdictList, edictCount, clientMax); } diff --git a/public/IExtensionSys.h b/public/IExtensionSys.h index 68a8e541..21e7f17a 100644 --- a/public/IExtensionSys.h +++ b/public/IExtensionSys.h @@ -40,6 +40,7 @@ * @brief Defines the interface for loading/unloading/managing extensions. */ +struct edict_t; namespace SourceMod { class IExtensionInterface; @@ -131,7 +132,7 @@ namespace SourceMod * Note: This is bumped when IShareSys is changed, because IShareSys * itself is not versioned. */ - #define SMINTERFACE_EXTENSIONAPI_VERSION 3 + #define SMINTERFACE_EXTENSIONAPI_VERSION 4 /** * @brief The interface an extension must expose.