hedgewars/uGearsHandlersMess.pas
changeset 15753 72f735c03fec
parent 15742 0b5aea8e5eab
child 15803 b06b33cf0a89
--- a/hedgewars/uGearsHandlersMess.pas	Thu Oct 22 12:33:35 2020 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Thu Oct 22 12:50:24 2020 +0200
@@ -3233,6 +3233,8 @@
 begin
     AllInactive := false;
 
+    HHGear:= nil;
+
     if (Gear^.Hedgehog <> nil) and (Gear^.Hedgehog^.Gear <> nil) then
         HHGear:= Gear^.Hedgehog^.Gear;