Fix "NONE" showing in HUD in many cases

This commit is contained in:
jacob1 2021-05-02 23:58:19 -04:00
parent 4e2e054c50
commit 0e530dc0ca
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995

View File

@ -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);