Closed Paspartout closed 7 years ago
Thanks for bringing this to my attention! Actual problem here was that the array with instrument sound events didn't match the enum anymore though (due to added instruments).
Fixed in 5963f7e72dfa0f3bf65a6cd2fd8b7ca7a98abf5c.
By providing invalid instrument id's to the AudioModule the game crashed with ArrayIndexOutOfBounds:
I fixed it by simply returning when the instrumentId is out of bounds of the INSTRUMENTS array.
I hope that pull requesting into this branch is fine and you can merge this change back into the other branches.