# HG changeset patch
# User nemo
# Date 1315752413 14400
# Node ID ed97138dc414bbb3c19637c7a53fe9d91efdc0f1
# Parent  74c621e12baa44fe9505303ff23062946a546405
Should prevent a crasher when drowning while firing

diff -r 74c621e12baa -r ed97138dc414 hedgewars/uWorld.pas
--- 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];