hedgewars/uGearsRender.pas
changeset 10682 1be106f8095a
parent 10562 3388822b3914
child 10683 31a0e7efa17a
--- a/hedgewars/uGearsRender.pas	Tue Dec 16 14:23:24 2014 -0500
+++ b/hedgewars/uGearsRender.pas	Tue Dec 16 14:29:25 2014 -0500
@@ -168,6 +168,7 @@
 procedure DrawRope(Gear: PGear);
 var roplen, i: LongInt;
 begin
+    if Gear^.Hedgehog^.Gear = nil then exit;
     if (cReducedQuality and rqSimpleRope) <> 0 then
         DrawRopeLinesRQ(Gear)
     else