- added the missing TNT1A0 check for icon-less keys.

Since it tries to get the icon from the spawn state it also has to check if that actually has a valid sprite.
This commit is contained in:
Christoph Oelckers 2018-12-02 09:42:45 +01:00
commit 1406c11f8e
2 changed files with 5 additions and 2 deletions

View file

@ -701,6 +701,7 @@ void DrawHUD()
althud->IntVar("statspace") = statspace;
althud->IntVar("healthpic") = healthpic? healthpic->id.GetIndex() : -1;
althud->IntVar("berserkpic") = berserkpic? berserkpic->id.GetIndex() : -1;
althud->IntVar("tnt1a0") = tnt1a0.GetIndex();
althud->PointerVar<FFont>("HUDFont") = HudFont;
if (!automapactive)