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 for sound banks loading #253

Merged
merged 1 commit into from
Apr 3, 2021
Merged

Fix for sound banks loading #253

merged 1 commit into from
Apr 3, 2021

Conversation

KingEnderBrine
Copy link
Contributor

If sound bank loading failed Load method tries to remove the sound bank from SoundBanks.soundBanks list. But Load is called inside foreach loop that iterates through SoundBanks.soundBanks list. So, if loading is failed an exception will be thrown because you can't remove an element from the list while iterating it.
There is a fix for that.

@tristanmcpherson tristanmcpherson merged commit c29ba8e into risk-of-thunder:master Apr 3, 2021
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