Closed Arleycht closed 3 years ago
Steps to reproduce:
I believe the following lines are the direct causes for this, since there are no bound-checks before increment and to determine game state: https://github.com/SCCapstone/GreedyGuppyGames/blob/1106858116ccb8674b8d8cb702d9e1f1fe66d884/Assets/Scripts/WaveSpawner.cs#L86 https://github.com/SCCapstone/GreedyGuppyGames/blob/1106858116ccb8674b8d8cb702d9e1f1fe66d884/Assets/Scripts/WaveSpawner.cs#L99
I might recommend checking the round using inequalities because it is resistant to this.
index >= maxRounds - 1
Example of what happens in-game as a result of this:
Steps to reproduce:
I believe the following lines are the direct causes for this, since there are no bound-checks before increment and to determine game state: https://github.com/SCCapstone/GreedyGuppyGames/blob/1106858116ccb8674b8d8cb702d9e1f1fe66d884/Assets/Scripts/WaveSpawner.cs#L86 https://github.com/SCCapstone/GreedyGuppyGames/blob/1106858116ccb8674b8d8cb702d9e1f1fe66d884/Assets/Scripts/WaveSpawner.cs#L99
I might recommend checking the round using inequalities because it is resistant to this.
Example of what happens in-game as a result of this: