hedgewars/uScript.pas
changeset 4891 43706c0392e7
parent 4890 e8f2935f2c84
child 4893 353781305c07
--- a/hedgewars/uScript.pas	Sun Jan 30 18:49:55 2011 -0500
+++ b/hedgewars/uScript.pas	Sun Jan 30 19:02:32 2011 -0500
@@ -570,7 +570,7 @@
             team:= clan^.Teams[i];
             for j:= 0 to 7 do
                 begin
-                hh:= team^.Hedgehogs[i];
+                hh:= team^.Hedgehogs[j];
                 if (hh.Gear <> nil) or (hh.GearHidden <> nil) then 
                     begin
                     FreeTexture(hh.NameTagTex);