hedgewars/GSHandlers.inc
changeset 3299 aff2315a2843
parent 3280 5e21acf0c59a
child 3303 397a8f048bb3
--- a/hedgewars/GSHandlers.inc	Sat Apr 03 16:02:13 2010 +0000
+++ b/hedgewars/GSHandlers.inc	Sat Apr 03 16:32:48 2010 +0000
@@ -957,7 +957,7 @@
     begin
     DeleteGear(Gear);
     isCursorVisible:= false;
-    ApplyAmmoChanges(PHedgehog(Gear^.Hedgehog)^);
+    ApplyAmmoChanges(PHedgehog(HHGear^.Hedgehog)^);
     exit
     end;
 
@@ -1778,7 +1778,7 @@
         end;
     DeleteGear(Gear);
     isCursorVisible:= false;
-    ApplyAmmoChanges(PHedgehog(Gear^.Hedgehog)^);
+    ApplyAmmoChanges(PHedgehog(HHGear^.Hedgehog)^);
     exit
     end;
 
@@ -2753,7 +2753,7 @@
         end;
     DeleteGear(Gear);
     isCursorVisible:= false;
-    ApplyAmmoChanges(PHedgehog(Gear^.Hedgehog)^);
+    ApplyAmmoChanges(PHedgehog(HHGear^.Hedgehog)^);
 //    if Gear^.Tex <> nil then FreeTexture(Gear^.Tex);
 //    Gear^.Tex:= RenderStringTex(trmsg[sidFuel] + ': ' + inttostr(round(Gear^.Health / 20)) + '%', cWhiteColor, fntSmall)
     //AddCaption(trmsg[sidFuel]+': '+inttostr(round(Gear^.Health/20))+'%', cWhiteColor, capgrpAmmostate);