virtualMass - Fix div0 error when playing as rabbit

This commit is contained in:
PabstMirror 2016-06-09 20:30:45 -05:00
parent c3d984d6e7
commit e8f7f6ea24

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