hedgewars/uRender.pas
changeset 5235 e30b06ffea3a
parent 4976 088d40d8aba2
child 5441 39962b855540
--- a/hedgewars/uRender.pas	Sat Jun 11 17:27:26 2011 -0400
+++ b/hedgewars/uRender.pas	Sun Jun 12 10:16:38 2011 -0400
@@ -266,6 +266,7 @@
 procedure DrawSprite (Sprite: TSprite; X, Y, Frame: LongInt);
 var row, col, numFramesFirstCol: LongInt;
 begin
+if SpritesData[Sprite].imageHeight = 0 then exit;
 numFramesFirstCol:= SpritesData[Sprite].imageHeight div SpritesData[Sprite].Height;
 row:= Frame mod numFramesFirstCol;
 col:= Frame div numFramesFirstCol;