--- a/hedgewars/hwengine.pas Mon Feb 01 15:10:10 2016 +0300
+++ b/hedgewars/hwengine.pas Thu Feb 04 21:04:08 2016 +0300
@@ -81,6 +81,7 @@
AddFlakes;
SetRandomSeed(cSeed, false);
StoreLoad(false);
+ if not allOK then exit;
AssignHHCoords;
AddMiscGears;
InitWorld;
--- 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)]);