hedgewars/uScript.pas
changeset 4890 e8f2935f2c84
parent 4889 f71e30eb1d37
child 4891 43706c0392e7
--- a/hedgewars/uScript.pas	Sun Jan 30 17:54:02 2011 -0500
+++ b/hedgewars/uScript.pas	Sun Jan 30 18:49:55 2011 -0500
@@ -571,7 +571,7 @@
             for j:= 0 to 7 do
                 begin
                 hh:= team^.Hedgehogs[i];
-                if (hh.Gear <> nil) and (hh.GearHidden <> nil) then 
+                if (hh.Gear <> nil) or (hh.GearHidden <> nil) then 
                     begin
                     FreeTexture(hh.NameTagTex);
                     hh.NameTagTex:= RenderStringTex(hh.Name, clan^.Color, fnt16);