mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 14:32:55 +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 )
|
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_SCROLLOCK].down = keystate[SDL_SCANCODE_SCROLLLOCK];
|
||||||
keys[K_KP_NUMLOCK].down = keystate[SDL_SCANCODE_NUMLOCKCLEAR];
|
keys[K_KP_NUMLOCK].down = keystate[SDL_SCANCODE_NUMLOCKCLEAR];
|
||||||
|
|
Loading…
Reference in a new issue