hedgewars/uAmmos.pas
changeset 11534 0ead3a2e0309
parent 11532 bf86c6cb9341
child 11939 c7ec309cd685
--- a/hedgewars/uAmmos.pas	Mon Feb 01 15:10:10 2016 +0300
+++ b/hedgewars/uAmmos.pas	Thu Feb 04 21:04:08 2016 +0300
@@ -90,8 +90,8 @@
                   , true)
     then exit;
 
+if checkFails(StoreCnt < cMaxHHs, 'Ammo stores overflow', true) then exit;
 inc(StoreCnt);
-if checkFails(StoreCnt <= cMaxHHs, 'Ammo stores overflow', true) then exit;
 
 new(StoresList[Pred(StoreCnt)]);