hedgewars/uGears.pas
changeset 2611 07b0cc91256c
parent 2608 cebfea02f8b5
child 2619 bc2786a00fb8
--- a/hedgewars/uGears.pas	Tue Nov 10 04:07:08 2009 +0000
+++ b/hedgewars/uGears.pas	Tue Nov 10 04:22:55 2009 +0000
@@ -629,7 +629,8 @@
 				// reset to default zoom
 				//ZoomValue:= ZoomDefault;
 				with CurrentHedgehog^ do
-					if ((Gear^.State and gstAttacked) = 0)
+					if (Gear <> nil) 
+                        and ((Gear^.State and gstAttacked) = 0)
 						and (MultiShootAttacks > 0) then OnUsedAmmo(CurrentHedgehog^);
 				
 				ResetUtilities;