Skip to content

Commit

Permalink
add cba prefix to local _args
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Nov 1, 2024
1 parent a0f8464 commit 9f0b753
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/common/fnc_directCall.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ Author:
commy2
---------------------------------------------------------------------------- */

params [["_CBA_code", {}, [{}]], ["_args", []]];
params [["_CBA_code", {}, [{}]], ["_CBA_args", []]];

private "_CBA_return";

isNil {
// Wrap the _CBA_code in an extra call block to prevent problems with exitWith and apply
//IGNORE_PRIVATE_WARNING ["_x"];
_CBA_return = ([_x] apply {_args call _CBA_code}) select 0;
_CBA_return = ([_x] apply {_CBA_args call _CBA_code}) select 0;
};

if (!isNil "_CBA_return") then {_CBA_return};

0 comments on commit 9f0b753

Please sign in to comment.