From 2b7b1a844c722850a2492700b3af07e4359be01b Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Wed, 24 Mar 2004 18:35:42 +0000 Subject: [PATCH] get_modulesnum function updated (using UTIL_GetModulesNum now) --- amxmodx/amxmodx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index 301a0fcd..a940542f 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -2090,7 +2090,7 @@ static cell AMX_NATIVE_CALL is_plugin_loaded(AMX *amx, cell *params) // native get_modulesnum(); static cell AMX_NATIVE_CALL get_modulesnum(AMX *amx, cell *params) { - return static_cast(g_modules.size()); + return (cell)UTIL_GetModulesNum(UTIL_MODULES_ALL); } // native get_module(id, name[], nameLen, author[], authorLen, version[], versionLen, &status);