--- a/hedgewars/uVisualGearsList.pas Thu Dec 04 11:19:38 2014 -0500
+++ b/hedgewars/uVisualGearsList.pas Thu Dec 04 20:15:03 2014 +0100
@@ -102,12 +102,14 @@
Scale:= 1.0;
if SuddenDeathDmg then
begin
- FrameTicks:= random(vobSDFrameTicks);
+ if vobSDFrameTicks > 0 then
+ FrameTicks:= random(vobSDFrameTicks);
Frame:= random(vobSDFramesCount);
end
else
begin
- FrameTicks:= random(vobFrameTicks);
+ if vobFrameTicks > 0 then
+ FrameTicks:= random(vobFrameTicks);
Frame:= random(vobFramesCount);
end;
Angle:= random(360);