diff options
author | Zack Middleton <zturtleman@gmail.com> | 2013-10-19 00:39:07 -0500 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-08-28 11:03:29 +0100 |
commit | d91deecede3f3335821cb99c913ab768e5024415 (patch) | |
tree | adf374ffcfe6baa5ecd93f13685826f053ce0d18 /src/sdl | |
parent | 2f43d8b9bfa4745997090e482a3ab31675da317d (diff) |
Fix warning that SDL_GetKeyboardState return value is used non-const
Diffstat (limited to 'src/sdl')
-rw-r--r-- | src/sdl/sdl_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sdl/sdl_input.c b/src/sdl/sdl_input.c index affe2d41..473aa65b 100644 --- a/src/sdl/sdl_input.c +++ b/src/sdl/sdl_input.c @@ -972,7 +972,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]; |