hedgewars/uWorld.pas
changeset 5856 ed97138dc414
parent 5855 74c621e12baa
child 5862 b4229b0abc70
--- a/hedgewars/uWorld.pas	Sun Sep 11 10:22:09 2011 -0400
+++ b/hedgewars/uWorld.pas	Sun Sep 11 10:46:53 2011 -0400
@@ -802,7 +802,7 @@
     DrawWater(255, 0);
 
 // Attack bar
-    if CurrentTeam <> nil then
+    if (CurrentTeam <> nil) and (CurrentHedgehog^.Gear <> nil) then
         case AttackBar of
 (*        1: begin
         r:= StuffPoz[sPowerBar];