Fix warning that SDL_GetKeyboardState return value is used non-const

This commit is contained in:
Zack Middleton 2013-10-19 00:39:07 -05:00
parent c6a61d212a
commit cb153f2aaa
1 changed files with 1 additions and 1 deletions

View File

@ -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];