backport of c90f50e6dd8e (eggshell vgt related segfault) 0.9.16
authorsheepluva
Tue, 18 Oct 2011 05:43:16 +0200
branch0.9.16
changeset 6005 3470f3f547ca
parent 6003 74431bf4c632
child 6007 b3b9e995ae90
backport of c90f50e6dd8e (eggshell vgt related segfault)
hedgewars/VGSHandlers.inc
--- a/hedgewars/VGSHandlers.inc	Sun Oct 16 19:02:48 2011 +0200
+++ b/hedgewars/VGSHandlers.inc	Tue Oct 18 05:43:16 2011 +0200
@@ -172,7 +172,10 @@
 Gear^.Angle:= round(Gear^.Angle + Steps) mod cMaxAngle;
 
 if Gear^.FrameTicks <= Steps then
-    DeleteVisualGear(Gear)
+    begin
+    DeleteVisualGear(Gear);
+    exit
+    end
 else
     dec(Gear^.FrameTicks, Steps);