Fix GetAmmoEntry in PascalExports
authorunc0rr
Tue, 24 Apr 2012 23:56:41 +0400
changeset 6925 1fbf9266ba52
parent 6924 57b66ee3bff3
child 6926 6e832f8f4d8e
Fix GetAmmoEntry in PascalExports
hedgewars/PascalExports.pas
--- a/hedgewars/PascalExports.pas	Tue Apr 24 23:50:40 2012 +0400
+++ b/hedgewars/PascalExports.pas	Tue Apr 24 23:56:41 2012 +0400
@@ -276,7 +276,7 @@
 begin
     if HW_isWeaponTimerable then
     begin
-        CurWeapon:= GetAmmoEntry(CurrentHedgehog^);
+        CurWeapon:= GetCurAmmoEntry(CurrentHedgehog^);
         res:= CurWeapon^.Timer div 1000;
     end;
     exit(res);