Fix humanity gain on trading

Thx @Schalldampfer
This commit is contained in:
AirwavesMan
2021-02-01 09:00:38 +01:00
parent 47d0d930d1
commit eec3be93ca

View File

@@ -8,7 +8,7 @@ _part_out = _vars select 0;
_part_in = _vars select 1;
_qty_out = _vars select 2;
_qty_in = _vars select 3;
_humanityGain = [0,_vars select 4] select (count _this > 4);
_humanityGain = [0,_vars select 4] select (count _vars > 4);
_textPartIn = getText (configFile >> "CfgMagazines" >> _part_in >> "displayName");
_textPartOut = getText (configFile >> "CfgMagazines" >> _part_out >> "displayName");