Merge pull request #3893 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

View File

@ -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);