1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-26 19:54:14 +01:00

merged in bug fix from 1.5.0

--HG--
branch : 1.4.2
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/branches/1.4.2%40413
This commit is contained in:
David Anderson 2007-06-27 03:04:38 +00:00
parent 9e3b3302f4
commit e1efbaeffa
2 changed files with 6 additions and 9 deletions

View File

@ -496,22 +496,16 @@ bool CPluginManager::UnloadAll()
{
PluginIter i;
SourceHook::List<SourceMM::CPluginManager::CPlugin *> remqueue;
for (i=m_Plugins.begin(); i!=m_Plugins.end(); i++)
remqueue.push_back( (*i) );
char error[128];
bool status = true;
for (i=remqueue.begin(); i!=remqueue.end(); i++)
while ((i = m_Plugins.begin()) != m_Plugins.end())
{
if ( !_Unload( (*i), true, error, sizeof(error)) )
{
status = false;
}
m_Plugins.clear();
remqueue.clear();
}
return status;
}

View File

@ -1,3 +1,6 @@
2007/06/26 1.4.2:
- Fixed a bug where unloading all plugins could crash if one plugin had child plugins.
2007/05/16 1.4.1:
- The client version of the "meta" command should now work with games using the latest
Source beta (srcds0407).