From 0e530dc0caee3b48ab03921e9c3cf6fdcb494dab Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sun, 2 May 2021 23:58:19 -0400 Subject: [PATCH] Fix "NONE" showing in HUD in many cases --- src/gui/game/GameController.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/game/GameController.cpp b/src/gui/game/GameController.cpp index 170648b30..a5211f441 100644 --- a/src/gui/game/GameController.cpp +++ b/src/gui/game/GameController.cpp @@ -1530,6 +1530,9 @@ void GameController::ClearSim() String GameController::ElementResolve(int type, int ctype) { + // "NONE" should never be displayed in the HUD + if (!type) + return ""; if (gameModel && gameModel->GetSimulation()) { return gameModel->GetSimulation()->ElementResolve(type, ctype);