fixed crash bug (regression) when extensions failed to load
--HG-- branch : sourcemod-1.0.x extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/sourcemod-1.0.x%402054
This commit is contained in:
parent
d0182a01ac
commit
4d46aa34e9
@ -1371,13 +1371,18 @@ IExtension *CExtensionManager::LoadExternal(IExtensionInterface *pInterface,
|
||||
|
||||
void CExtensionManager::CallOnCoreMapStart(edict_t *pEdictList, int edictCount, int clientMax)
|
||||
{
|
||||
IExtensionInterface *pAPI;
|
||||
List<CExtension *>::iterator iter;
|
||||
|
||||
for (iter=m_Libs.begin(); iter!=m_Libs.end(); iter++)
|
||||
{
|
||||
if ((*iter)->GetAPI()->GetExtensionVersion() > 3)
|
||||
if ((pAPI = (*iter)->GetAPI()) == NULL)
|
||||
{
|
||||
(*iter)->GetAPI()->OnCoreMapStart(pEdictList, edictCount, clientMax);
|
||||
continue;
|
||||
}
|
||||
if (pAPI->GetExtensionVersion() > 3)
|
||||
{
|
||||
pAPI->OnCoreMapStart(pEdictList, edictCount, clientMax);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user