1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-06-25 14:43:01 +00:00

rogueviz:: ads:: fix crash on some keys

This commit is contained in:
Zeno Rogue 2025-06-22 16:01:14 +02:00
parent 0ad19f56ee
commit 3508ff4fd5

View File

@ -88,7 +88,7 @@ void fire() {
bool handleKey(int sym, int uni) {
if(cmode & sm::NORMAL) {
int* t = multi::scfg_default.keyaction;
if(t[sym] >= 16 && t[sym] < 32) return true;
if(sym >= 0 && sym < multi::SCANCODES && t[sym] >= 16 && t[sym] < 32) return true;
if(sym == 'v') pushScreen(game_menu);
if(sym == SDLK_ESCAPE) pushScreen(game_menu);
if(sym == SDLK_F1) {