mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-13 20:04:01 +02:00
Fix "NONE" showing in HUD in many cases
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user