Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix setVariablePublic reseting to old values #4938

Merged
merged 2 commits into from
Feb 25, 2017
Merged

Conversation

PabstMirror
Copy link
Contributor

Fix #4932

setVariablePublic should call itself again with the current value, not the value from the first call

@PabstMirror PabstMirror added the kind/bug-fix Release Notes: **FIXED:** label Feb 22, 2017
@PabstMirror PabstMirror added this to the 3.9.1 milestone Feb 22, 2017
@@ -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 {
[_object, _varName, _curValue] call FUNC(setVariablePublic);
_this set [2, _curValue];
_this call FUNC(setVariablePublic);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this changed? I think it's bad practice to modify the input array.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will pass 4th arg which may or may not exist

@PabstMirror PabstMirror merged commit 02ea214 into master Feb 25, 2017
@PabstMirror PabstMirror deleted the fixSetVariablePublic branch February 25, 2017 01:19
thojkooi pushed a commit that referenced this pull request Mar 13, 2017
* Fix setVariablePublic reseting to old values

* Don't drop delay time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-fix Release Notes: **FIXED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants