From 8d4a1ca35958eccd1bcc648f1753a8d58a122cb8 Mon Sep 17 00:00:00 2001 From: Freeman-AM Date: Sat, 11 Oct 2014 17:04:12 +0200 Subject: [PATCH] Restmenu: more use of sizeof --- plugins/cstrike/restmenu.sma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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