hedgewars/uWorld.pas
changeset 3582 4debed8656d7
parent 3580 85bd667955f2
child 3594 aeca3d8f1b29
--- a/hedgewars/uWorld.pas	Mon Jun 28 21:49:59 2010 +0400
+++ b/hedgewars/uWorld.pas	Mon Jun 28 21:52:00 2010 +0200
@@ -596,7 +596,6 @@
 DrawWater(255, 0);
 
 // Attack bar
-// TODO: Add weapon offset
 if CurrentTeam <> nil then
     case AttackBar of
 (*        1: begin
@@ -974,7 +973,7 @@
    if not bShowAmmoMenu then
      begin
      with CurrentHedgehog^ do
-       if (Gear^.State and gstHHChooseTarget) <> 0 then
+       if (Gear <> nil) and ((Gear^.State and gstHHChooseTarget) <> 0) then
          begin
          i:= Ammo^[CurSlot, CurAmmo].Pos;
          with Ammoz[Ammo^[CurSlot, CurAmmo].AmmoType] do