Skip to content

Commit

Permalink
Fix setVariablePublic reseting to old values (#4938)
Browse files Browse the repository at this point in the history
* Fix setVariablePublic reseting to old values

* Don't drop delay time
  • Loading branch information
PabstMirror authored Feb 25, 2017
1 parent e41fbcb commit 02ea214
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/common/functions/fnc_setVariablePublic.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ TRACE_2("Starting Embargo", _varName, _delay);

//If value at start of embargo doesn't equal current, then broadcast and start new embargo
if (!(_value isEqualTo _curValue)) then {
_this set [2, _curValue];
_this call FUNC(setVariablePublic);
};
}, _this, _delay] call CBA_fnc_waitAndExecute;

0 comments on commit 02ea214

Please sign in to comment.