mirror of
https://github.com/UberGames/rpgxEF.git
synced 2025-04-22 08:50:48 +00:00
Fix for issue #2 on experimental branch (splint).
This commit is contained in:
parent
d2340e55da
commit
a51e6fb305
1 changed files with 2 additions and 2 deletions
|
@ -624,7 +624,7 @@ static void AdminMenu_Event( void* ptr, int32_t event ) {
|
|||
case ID_BIND_SPAWN:
|
||||
case ID_BIND_USEENT:
|
||||
case ID_BIND_KICK:
|
||||
s_admin.keyBindActive = ((menucommon_s *) ptr)->id - 40;
|
||||
s_admin.keyBindActive = ((menucommon_s *) ptr)->id - ID_BIND_SPAWN;
|
||||
s_admin.menu.noNewSelecting = qtrue;
|
||||
break;
|
||||
|
||||
|
@ -879,7 +879,7 @@ static void AdminMenu_DrawBinding( void *self ) {
|
|||
|
||||
focus = ( Menu_ItemAtCursor( action->generic.parent ) == action );
|
||||
|
||||
bind = s_admin.binds[ action->generic.id - 40 ];
|
||||
bind = s_admin.binds[ action->generic.id - ID_BIND_SPAWN ];
|
||||
|
||||
/* Get bind name */
|
||||
if ( bind <= 0 || bind >=256 ) {
|
||||
|
|
Loading…
Reference in a new issue