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

Exception when lastIndexOf animStorage not found #270

Merged
merged 2 commits into from Nov 15, 2016
Merged

Conversation

dp901
Copy link
Contributor

@dp901 dp901 commented Nov 11, 2016

No description provided.

last.IsDisabled = false;
AnimationStore.ApplyCurrent(last);
return true;
if(i >= 0)
Copy link
Member

Choose a reason for hiding this comment

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

It would be best to write this as a guard clause.

if (i < 0)
    return false;

@BSick7
Copy link
Member

BSick7 commented Nov 15, 2016

Thanks @dp901!

@BSick7 BSick7 merged commit 93ec401 into wsick:master Nov 15, 2016
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.

None yet

2 participants