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:
parent
9e3b3302f4
commit
e1efbaeffa
@ -496,22 +496,16 @@ bool CPluginManager::UnloadAll()
|
|||||||
{
|
{
|
||||||
PluginIter i;
|
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];
|
char error[128];
|
||||||
bool status = true;
|
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)) )
|
if ( !_Unload( (*i), true, error, sizeof(error)) )
|
||||||
|
{
|
||||||
status = false;
|
status = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
m_Plugins.clear();
|
|
||||||
remqueue.clear();
|
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
@ -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:
|
2007/05/16 1.4.1:
|
||||||
- The client version of the "meta" command should now work with games using the latest
|
- The client version of the "meta" command should now work with games using the latest
|
||||||
Source beta (srcds0407).
|
Source beta (srcds0407).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user