Fixed byte offset in string for SDL_DISABLE_LOCK_KEYS, putting the 1 in place of the 0 instead on the terminator.
This commit is contained in:
parent
dee78671dc
commit
8e097e79f0
|
@ -419,7 +419,7 @@ static void PostProcessGameArg()
|
|||
|
||||
static char sdl_disable_lock_keys[] = "SDL_DISABLE_LOCK_KEYS=0";
|
||||
if (CGameArg.CtlNoStickyKeys) // Must happen before SDL_Init!
|
||||
sdl_disable_lock_keys[sizeof(sdl_disable_lock_keys) - 1] = '1';
|
||||
sdl_disable_lock_keys[sizeof(sdl_disable_lock_keys) - 2] = '1';
|
||||
SDL_putenv(sdl_disable_lock_keys);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue