on portal death: make sure that the linked portal know it has been unlinked
authorsheepluva
Tue, 04 May 2010 03:04:07 +0000
changeset 3417 27ff4a6375dd
parent 3416 310fda7c1dc5
child 3418 8545f646a40d
on portal death: make sure that the linked portal know it has been unlinked
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Tue May 04 02:46:23 2010 +0000
+++ b/hedgewars/GSHandlers.inc	Tue May 04 03:04:07 2010 +0000
@@ -3047,6 +3047,7 @@
 begin
     if (Land[hwRound(Gear^.Y), hwRound(Gear^.X)] and $FF00) = 0 then
         begin
+        if Gear^.IntersectGear <> nil then Gear^.IntersectGear^.IntersectGear:= nil;
         DeleteGear(Gear);
         EXIT;
         end;