1
0
mirror of https://github.com/acemod/ACE3.git synced 2024-08-30 18:23:18 +00:00

Merge pull request from acemod/virtualMasDiv0

virtualMass - Fix div0 error when naked
This commit is contained in:
commy2 2016-06-10 10:27:36 +02:00 committed by GitHub
commit a4bd6ea80f

@ -27,7 +27,7 @@ private _virtualLoad = 0;
];
// get absolute vanilla load
private _absLoad = loadAbs _unit / load _unit;
private _absLoad = getNumber (configFile >> "CfgInventoryGlobalVariable" >> "maxSoldierLoad");
// try to preserve other changes to the "LoadCoef" unitTrait
private _loadCoef = _unit getVariable QGVAR(loadCoef);