From 7e028f037e78a9b66f12877ea3e5ef59c7eb4ce2 Mon Sep 17 00:00:00 2001 From: commy2 Date: Thu, 4 May 2017 04:54:00 +0200 Subject: [PATCH] fix assignment operator return value bug for directCall --- addons/common/fnc_directCall.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/common/fnc_directCall.sqf b/addons/common/fnc_directCall.sqf index 1a751fee1..c4aeb0170 100644 --- a/addons/common/fnc_directCall.sqf +++ b/addons/common/fnc_directCall.sqf @@ -22,12 +22,12 @@ Author: ---------------------------------------------------------------------------- */ #include "script_component.hpp" -params [["_CBA_code", {}, [{}]], ["_CBA_arguments", []]]; +params [["_CBA_code", {}, [{}]], ["_this", []]]; private "_CBA_return"; isNil { - _CBA_return = _CBA_arguments call _CBA_code; + _CBA_return = [_x] apply _CBA_code select 0; }; if (!isNil "_CBA_return") then {_CBA_return};