--- a/hedgewars/uStore.pas Mon Jan 21 02:52:09 2019 +0100
+++ b/hedgewars/uStore.pas Mon Jan 21 05:51:35 2019 +0100
@@ -619,8 +619,13 @@
procedure RenderHealth(var Hedgehog: THedgehog);
var s: shortstring;
begin
-s:= IntToStr(Hedgehog.Gear^.Health);
FreeAndNilTexture(Hedgehog.HealthTagTex);
+if Hedgehog.Gear <> nil then
+ s:= IntToStr(Hedgehog.Gear^.Health)
+else if Hedgehog.GearHidden <> nil then
+ s:= IntToStr(Hedgehog.GearHidden^.Health)
+else
+ exit;
Hedgehog.HealthTagTex:= RenderStringTex(ansistring(s), Hedgehog.Team^.Clan^.Color, fnt16)
end;