mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #3893 from acemod/virtualMasDiv0
virtualMass - Fix div0 error when naked
This commit is contained in:
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);
|
||||
|
Loading…
Reference in New Issue
Block a user