changeset 10634 | 35d059bd0932 |
parent 10510 | 9329dab04490 |
child 10789 | acbf69e2e5cf |
--- a/hedgewars/uGears.pas Sun Dec 07 14:36:28 2014 -0500 +++ b/hedgewars/uGears.pas Mon Dec 08 09:35:14 2014 -0500 @@ -215,7 +215,7 @@ begin if curHandledGear^.RenderTimer and (curHandledGear^.Timer > 500) and ((curHandledGear^.Timer mod 1000) = 0) then begin - FreeTexture(curHandledGear^.Tex); + FreeAndNilTexture(curHandledGear^.Tex); curHandledGear^.Tex:= RenderStringTex(ansistring(inttostr(curHandledGear^.Timer div 1000)), cWhiteColor, fntSmall); end; curHandledGear^.doStep(curHandledGear);