From 0b41ce271ff6ccb27828d8aa12ae44f081775c05 Mon Sep 17 00:00:00 2001 From: staphen Date: Sat, 21 May 2022 19:55:59 -0400 Subject: [PATCH] Skip touch interactions with main panel when not in a game session --- Source/controls/touch/event_handlers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/controls/touch/event_handlers.cpp b/Source/controls/touch/event_handlers.cpp index 9915e1547..6765e9dc2 100644 --- a/Source/controls/touch/event_handlers.cpp +++ b/Source/controls/touch/event_handlers.cpp @@ -89,7 +89,7 @@ bool HandleSpeedBookInteraction(const SDL_Event &event) void HandleBottomPanelInteraction(const SDL_Event &event) { - if (!MyPlayer->HoldItem.isEmpty()) + if (!gbRunGame || !MyPlayer->HoldItem.isEmpty()) return; ClearPanBtn();