mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
get_modulesnum function updated (using UTIL_GetModulesNum now)
This commit is contained in:
parent
012507c38a
commit
2b7b1a844c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user