hedgewars/uGearsRender.pas
changeset 10867 36ca7a39f34d
parent 10866 c1f75780c56f
child 10869 f23763bbac1b
--- a/hedgewars/uGearsRender.pas	Sun Mar 22 21:40:16 2015 +0100
+++ b/hedgewars/uGearsRender.pas	Sun Mar 22 22:06:44 2015 +0100
@@ -228,6 +228,9 @@
         if (TeamsArray[i] = CurrentTeam) then
             t:= i;
 
+if t < 0 then
+    exit;
+
 if TeamsArray[t] <> nil then
     begin
     sprH:= SpritesData[sprBigDigit].Height;