From: molivier Date: Thu, 4 Mar 2004 13:17:37 +0000 (+0000) Subject: Fixed key bindings menu (we have a range of 1024 key numbers now) X-Git-Tag: xonotic-v0.1.0preview~6036 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1bacdbe28bff6bc631ff07ab6fcdcd56c4ff8040;p=xonotic%2Fdarkplaces.git Fixed key bindings menu (we have a range of 1024 key numbers now) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3967 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/menu.c b/menu.c index c4ce2787..4c603d21 100644 --- a/menu.c +++ b/menu.c @@ -2015,7 +2015,7 @@ void M_FindKeysForCommand (char *command, int *keys) count = 0; - for (j=0 ; j<256 ; j++) + for (j = 0; j < sizeof (keybindings[0]) / sizeof (keybindings[0][0]); j++) { b = keybindings[0][j]; if (!b) @@ -2034,7 +2034,7 @@ void M_UnbindCommand (char *command) int j; char *b; - for (j=0 ; j<256 ; j++) + for (j = 0; j < sizeof (keybindings[0]) / sizeof (keybindings[0][0]); j++) { b = keybindings[0][j]; if (!b)