From 8aa5e53bdd1c8d604547194a3b988cdc3a5494f2 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sun, 12 Jun 2016 02:01:49 -0500 Subject: [PATCH] movement - Handle objNull in virtualMass --- addons/movement/functions/fnc_handleVirtualMass.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/movement/functions/fnc_handleVirtualMass.sqf b/addons/movement/functions/fnc_handleVirtualMass.sqf index 983795e0d3..8e33197089 100644 --- a/addons/movement/functions/fnc_handleVirtualMass.sqf +++ b/addons/movement/functions/fnc_handleVirtualMass.sqf @@ -14,6 +14,8 @@ params ["_unit"]; +if (isNull _unit) exitWith {}; + // add sum of virtual loads private _virtualLoad = 0;