fixed a compatibility bug in AddTargetsToMenu()

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401638
This commit is contained in:
David Anderson 2007-10-22 06:01:07 +00:00
parent 8172560f39
commit 3c460aa48a

View File

@ -171,7 +171,14 @@ public __GetAdminTopMenu(Handle:plugin, numParams)
public __AddTargetsToMenu(Handle:plugin, numParams)
{
return UTIL_AddTargetsToMenu(GetNativeCell(1), GetNativeCell(2), GetNativeCell(3), GetNativeCell(4));
new bool:alive_only = false;
if (numParams >= 4)
{
alive_only = GetNativeCell(4);
}
return UTIL_AddTargetsToMenu(GetNativeCell(1), GetNativeCell(2), GetNativeCell(3), alive_only);
}
public Action:Command_DisplayMenu(client, args)