From 28e0491d3e6ef43e36cf42d3f8b8be7ec2acf6fb Mon Sep 17 00:00:00 2001 From: BaerMitUmlaut Date: Sun, 11 Oct 2020 20:37:59 +0200 Subject: [PATCH] Add comment with reasoning for detach before delete --- addons/dragging/functions/fnc_dropClone.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/dragging/functions/fnc_dropClone.sqf b/addons/dragging/functions/fnc_dropClone.sqf index 97cdebf334..83817babb2 100644 --- a/addons/dragging/functions/fnc_dropClone.sqf +++ b/addons/dragging/functions/fnc_dropClone.sqf @@ -20,6 +20,7 @@ private _unit = _clone getVariable [QGVAR(original), objNull]; _unit setPosASL getPosASL _clone; _unit hideObjectGlobal false; +// Detach first to prevent objNull in attachedObjects detach _clone; deleteVehicle _clone;