mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 12:32:09 +00:00
Fix warning that SDL_GetKeyboardState return value is used non-const
This commit is contained in:
parent
c6a61d212a
commit
cb153f2aaa
1 changed files with 1 additions and 1 deletions
|
@ -910,7 +910,7 @@ IN_InitKeyLockStates
|
|||
*/
|
||||
void IN_InitKeyLockStates( void )
|
||||
{
|
||||
unsigned char *keystate = SDL_GetKeyboardState(NULL);
|
||||
const unsigned char *keystate = SDL_GetKeyboardState(NULL);
|
||||
|
||||
keys[K_SCROLLOCK].down = keystate[SDL_SCANCODE_SCROLLLOCK];
|
||||
keys[K_KP_NUMLOCK].down = keystate[SDL_SCANCODE_NUMLOCKCLEAR];
|
||||
|
|
Loading…
Reference in a new issue