Skip to content

Commit

Permalink
Merge pull request #3893 from acemod/virtualMasDiv0
Browse files Browse the repository at this point in the history
virtualMass - Fix div0 error when naked
  • Loading branch information
commy2 authored Jun 10, 2016
2 parents e55881e + e8f7f6e commit a4bd6ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/movement/functions/fnc_handleVirtualMass.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a4bd6ea

Please sign in to comment.