From d618b108898e89f1a2c7c03a3e87767c950a646e Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 24 Mar 2024 21:22:58 +0100 Subject: [PATCH] fixed crashes in 'shift to target' option --- control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control.cpp b/control.cpp index 8747c547..b09ebaa2 100644 --- a/control.cpp +++ b/control.cpp @@ -872,7 +872,7 @@ EX void mainloopiter() { targetclick = pandora_leftclick | pandora_rightclick; pandora_leftclick = pandora_rightclick = 0; #else - targetclick = keystate[SDLK_RSHIFT] | keystate[SDLK_LSHIFT]; + targetclick = keystate[SDL12(SDLK_RSHIFT, SDL_SCANCODE_RSHIFT)] | keystate[SDL12(SDLK_LSHIFT, SDL_SCANCODE_LSHIFT)]; #endif } else {