mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
evilspy's fix
This commit is contained in:
parent
5e46f64d75
commit
a4be1ac635
@ -2606,7 +2606,13 @@ void CFakeMeta::Meta_Attach(PLUG_LOADTIME now, meta_globals_t *pMGlobals, gamedl
|
||||
|
||||
// Attach all plugins except core
|
||||
CList<CFakeMetaPlugin>::iterator iter = m_Plugins.begin();
|
||||
++iter; // Skip core
|
||||
// evilspy:
|
||||
// using metamod p-extensions?
|
||||
if(!gpMetaPExtFuncs)
|
||||
{
|
||||
++iter; // Skip core
|
||||
}
|
||||
|
||||
for (; iter; ++iter)
|
||||
{
|
||||
(*iter).Attach(now, pMGlobals, pGamedllFuncs);
|
||||
@ -2618,7 +2624,12 @@ void CFakeMeta::Meta_Detach(PLUG_LOADTIME now, PL_UNLOAD_REASON reason)
|
||||
{
|
||||
// Detach all plugins except core
|
||||
CList<CFakeMetaPlugin>::iterator iter = m_Plugins.begin();
|
||||
++iter; // Skip core
|
||||
// evilspy:
|
||||
// using metamod p-extensions?
|
||||
if(!gpMetaPExtFuncs)
|
||||
{
|
||||
++iter; // Skip core
|
||||
}
|
||||
for (; iter; ++iter)
|
||||
{
|
||||
(*iter).Detach(now, reason);
|
||||
|
Loading…
Reference in New Issue
Block a user