diff --git a/plugins/cstrike/restmenu.sma b/plugins/cstrike/restmenu.sma index 3942fb8c..cc72f1f2 100755 --- a/plugins/cstrike/restmenu.sma +++ b/plugins/cstrike/restmenu.sma @@ -343,7 +343,7 @@ setWeapon(a, action) findMenuId(name[]) { - for (new i = 0; i < 7 ; ++i) + for (new i = 0; i < sizeof(g_menusNames) ; ++i) if (equali(name, g_menusNames[i])) return i @@ -898,7 +898,7 @@ public HookEvent_ShowMenu(id) return } - for (new i=0; i<6; i++) + for (new i=0; i