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

Fixes #694 by moving the for loop's code around a bit. #695

Merged
merged 1 commit into from
Mar 31, 2015

Conversation

Dunbaratu
Copy link
Member

No description provided.

AddOpcode(new OpcodePush(iteratorIdentifier));
AddOpcode(new OpcodeUnset());
VisitVariableNode(node.Nodes[1]);
AddOpcode(new OpcodeUnset());
Copy link
Member Author

Choose a reason for hiding this comment

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

This code made sense when variables were all global.. But now, there's no point in doing cleanup on it when it's about to go out of scope on the very next instruction, and get orphaned away.

@Dunbaratu Dunbaratu changed the title fixed by moving the for loop's code around a bit. Fixes #694 by moving the for loop's code around a bit. Mar 31, 2015
@Dunbaratu Dunbaratu added bug Weird outcome is probably not what the mod programmer expected. Ready To Merge labels Mar 31, 2015
erendrake added a commit that referenced this pull request Mar 31, 2015
Fixes #694 by moving the for loop's code around a bit.
@erendrake erendrake merged commit 0870642 into KSP-KOS:develop Mar 31, 2015
@Dunbaratu Dunbaratu deleted the fix-694-break-in-for branch April 27, 2015 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Weird outcome is probably not what the mod programmer expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants