Fix selection while in UFO
authornemo
Mon, 06 Sep 2010 18:22:48 -0400
changeset 3837 47a623d9cdaa
parent 3836 833c0f32e326
child 3839 09325610c559
Fix selection while in UFO
hedgewars/HHHandlers.inc
--- a/hedgewars/HHHandlers.inc	Mon Sep 06 16:23:47 2010 -0400
+++ b/hedgewars/HHHandlers.inc	Mon Sep 06 18:22:48 2010 -0400
@@ -774,7 +774,7 @@
             end;
 
 if (CurAmmoGear = nil)
-    or ((Ammoz[Hedgehog^.CurAmmoType].Ammo.Propz and ammoprop_AltAttack) <> 0) then
+    or ((Ammoz[CurAmmoGear^.AmmoType].Ammo.Propz and ammoprop_AltAttack) <> 0) then
     begin
     if ((Gear^.Message and gm_Slot) <> 0) then
         begin