mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +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
|
// Attach all plugins except core
|
||||||
CList<CFakeMetaPlugin>::iterator iter = m_Plugins.begin();
|
CList<CFakeMetaPlugin>::iterator iter = m_Plugins.begin();
|
||||||
++iter; // Skip core
|
// evilspy:
|
||||||
|
// using metamod p-extensions?
|
||||||
|
if(!gpMetaPExtFuncs)
|
||||||
|
{
|
||||||
|
++iter; // Skip core
|
||||||
|
}
|
||||||
|
|
||||||
for (; iter; ++iter)
|
for (; iter; ++iter)
|
||||||
{
|
{
|
||||||
(*iter).Attach(now, pMGlobals, pGamedllFuncs);
|
(*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
|
// Detach all plugins except core
|
||||||
CList<CFakeMetaPlugin>::iterator iter = m_Plugins.begin();
|
CList<CFakeMetaPlugin>::iterator iter = m_Plugins.begin();
|
||||||
++iter; // Skip core
|
// evilspy:
|
||||||
|
// using metamod p-extensions?
|
||||||
|
if(!gpMetaPExtFuncs)
|
||||||
|
{
|
||||||
|
++iter; // Skip core
|
||||||
|
}
|
||||||
for (; iter; ++iter)
|
for (; iter; ++iter)
|
||||||
{
|
{
|
||||||
(*iter).Detach(now, reason);
|
(*iter).Detach(now, reason);
|
||||||
|
Loading…
Reference in New Issue
Block a user