mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
virtualMass - Fix div0 error when playing as rabbit
This commit is contained in:
parent
c3d984d6e7
commit
e8f7f6ea24
@ -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