hedgewars/uGears.pas
branchtransitional_engine
changeset 16004 2146cb7be36f
parent 15936 303cf91e5233
child 16049 9be943326d9c
--- a/hedgewars/uGears.pas	Fri Mar 10 11:42:25 2023 +0100
+++ b/hedgewars/uGears.pas	Tue Aug 22 08:35:46 2023 +0200
@@ -288,6 +288,7 @@
                             curHandledGear^.Tex:= RenderStringTex(trmsg[sidUnknownGearValue], $ff808080, fntSmall)
                         else
                             begin
+                            FreeAndNilTexture(curHandledGear^.Tex);
                             // Display mine timer with up to 1 decimal point of precision (rounded down)
                             i:= curHandledGear^.Timer div 1000;
                             j:= (curHandledGear^.Timer mod 1000) div 100;