1.1 --- a/core/systems/ExtensionSys.cpp Sat Apr 12 23:03:30 2008 +0000
1.2 +++ b/core/systems/ExtensionSys.cpp Sun Apr 13 04:00:44 2008 +0000
1.3 @@ -1371,13 +1371,18 @@
1.4
1.5 void CExtensionManager::CallOnCoreMapStart(edict_t *pEdictList, int edictCount, int clientMax)
1.6 {
1.7 + IExtensionInterface *pAPI;
1.8 List<CExtension *>::iterator iter;
1.9
1.10 for (iter=m_Libs.begin(); iter!=m_Libs.end(); iter++)
1.11 {
1.12 - if ((*iter)->GetAPI()->GetExtensionVersion() > 3)
1.13 + if ((pAPI = (*iter)->GetAPI()) == NULL)
1.14 {
1.15 - (*iter)->GetAPI()->OnCoreMapStart(pEdictList, edictCount, clientMax);
1.16 + continue;
1.17 + }
1.18 + if (pAPI->GetExtensionVersion() > 3)
1.19 + {
1.20 + pAPI->OnCoreMapStart(pEdictList, edictCount, clientMax);
1.21 }
1.22 }
1.23 }