diff --git a/amxmodx/fakemeta.cpp b/amxmodx/fakemeta.cpp index 3f415d54..bb7706e7 100755 --- a/amxmodx/fakemeta.cpp +++ b/amxmodx/fakemeta.cpp @@ -2592,7 +2592,12 @@ void CFakeMeta::Meta_Query(mutil_funcs_t *pMetaUtilFuncs) // Query all plugins except core CList::iterator iter = m_Plugins.begin(); - ++iter; // Skip core + + // evilspy: + // using metamod p-extensions? + if(!gpMetaPExtFuncs) + ++iter; // Skip core + for (; iter; ++iter) { (*iter).Query(pMetaUtilFuncs); @@ -2609,9 +2614,7 @@ void CFakeMeta::Meta_Attach(PLUG_LOADTIME now, meta_globals_t *pMGlobals, gamedl // evilspy: // using metamod p-extensions? if(!gpMetaPExtFuncs) - { ++iter; // Skip core - } for (; iter; ++iter) { @@ -2627,9 +2630,8 @@ void CFakeMeta::Meta_Detach(PLUG_LOADTIME now, PL_UNLOAD_REASON reason) // evilspy: // using metamod p-extensions? if(!gpMetaPExtFuncs) - { ++iter; // Skip core - } + for (; iter; ++iter) { (*iter).Detach(now, reason);