From 5ddc88ccac416c03154b8168873a8dec56debf78 Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Thu, 2 Nov 2023 16:37:17 -0400 Subject: [PATCH] Fix: addIntelScreen should be a no-op if the intel screen is already displayed --- src/hci.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hci.cpp b/src/hci.cpp index f783b5c24b6..4ae9310945c 100644 --- a/src/hci.cpp +++ b/src/hci.cpp @@ -2479,6 +2479,12 @@ static bool intAddCommand() //sets up the Intelligence Screen as far as the interface is concerned void addIntelScreen() { + if (intMode == INT_INTELMAP) + { + // screen is already up - do nothing + return; + } + intResetScreen(false); intHideGroupSelectionMenu();