Dragging - Fix dropping incorrect object when carrying fails (#9860)

Update fnc_startCarryPFH.sqf
This commit is contained in:
johnb432 2024-03-18 18:17:05 +01:00 committed by GitHub
parent 0856e58ae9
commit 11844ef05e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,8 +55,8 @@ if (_target isKindOf "CAManBase") then {
TRACE_4("timeout",_unit,_target,_timeOut,CBA_missionTime);
_idPFH call CBA_fnc_removePerFrameHandler;
private _draggedObject = _unit getVariable [QGVAR(draggedObject), objNull];
[_unit, _draggedObject] call FUNC(dropObject_carry);
private _carriedObject = _unit getVariable [QGVAR(carriedObject), objNull];
[_unit, _carriedObject] call FUNC(dropObject_carry);
};
// Wait for the unit to stand up