Skip to content

Commit

Permalink
Merge pull request #665 from CBATeam/fix-generic-error
Browse files Browse the repository at this point in the history
fix assignment operator return value bug for directCall
  • Loading branch information
Killswitch00 authored May 4, 2017
2 parents feb4157 + 7e028f0 commit e920c0c
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,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};

0 comments on commit e920c0c

Please sign in to comment.