From 19c171aed1b5e9fbd58077521d62fb8a57a2ea1b Mon Sep 17 00:00:00 2001 From: He-Man Date: Mon, 24 Oct 2016 23:01:40 +0200 Subject: [PATCH] Update EPOCH_upgradeBUILD.sqf --- Sources/epoch_code/compile/building/EPOCH_upgradeBUILD.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/epoch_code/compile/building/EPOCH_upgradeBUILD.sqf b/Sources/epoch_code/compile/building/EPOCH_upgradeBUILD.sqf index 0dd45fde..b6cca135 100644 --- a/Sources/epoch_code/compile/building/EPOCH_upgradeBUILD.sqf +++ b/Sources/epoch_code/compile/building/EPOCH_upgradeBUILD.sqf @@ -87,6 +87,8 @@ if (_object isKindOf "Constructions_static_F") then { _buildingJammerRange = getNumber(_config2 >> "buildingJammerRange"); _maxdoors = getNumber(_config2 >> "maxdoors"); _maxgates = getNumber(_config2 >> "maxgates"); + if (_maxdoors == 0) then {_maxdoors = 12}; + if (_maxgates == 0) then {_maxgates = 10}; _upgrades = getArray(_config >> (typeOf _object) >> "upgradeBuilding"); if !(_upgrades isEqualTo []) then {