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 to ArgumentOutOfRangeException in handleUpdateOfType #38

Merged
merged 1 commit into from
Oct 1, 2013

Conversation

jpsarda
Copy link
Contributor

@jpsarda jpsarda commented Sep 30, 2013

In Go.handleUpdateOfType, if you remove/destroy a tween B in the onComplete method of a tween A, you sometimes get a ArgumentOutOfRangeException on the line 'var t = _tweens[i];'.
And I suppose that sometimes you don't get the Exception but you skip a tween.update() in the loop.

The fix I submitted here is to not remove immediately the tween when you call destroy() on it. It will be removed in the main loop in the Go class.

prime31 added a commit that referenced this pull request Oct 1, 2013
Fix to ArgumentOutOfRangeException in handleUpdateOfType
@prime31 prime31 merged commit fc33ccb into prime31:master Oct 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants