get_modulesnum function updated (using UTIL_GetModulesNum now)

This commit is contained in:
Pavol Marko 2004-03-24 18:35:42 +00:00
parent 012507c38a
commit 2b7b1a844c

View File

@ -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<cell>(g_modules.size());
return (cell)UTIL_GetModulesNum(UTIL_MODULES_ALL);
}
// native get_module(id, name[], nameLen, author[], authorLen, version[], versionLen, &status);