You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When both players are playing and collecting lots of notes, there is an indexOutOfBounds error at line 197 in MusicMinigame.
if notes.size() > 0:
for i in range (0, notes.size() - 1):
var nextNote = notes[i]
I suspect this has to do with how we call
notes.remove(i)
later on in the function, because the function is still looping through all of the notes and if a note is collected (and removed) before one that spawned before it, then the index of that next note would be out of bounds. Not sure if that's what's happening or not though.
The text was updated successfully, but these errors were encountered:
When both players are playing and collecting lots of notes, there is an indexOutOfBounds error at line 197 in MusicMinigame.
if notes.size() > 0:
for i in range (0, notes.size() - 1):
var nextNote = notes[i]
I suspect this has to do with how we call
notes.remove(i)
later on in the function, because the function is still looping through all of the notes and if a note is collected (and removed) before one that spawned before it, then the index of that next note would be out of bounds. Not sure if that's what's happening or not though.
The text was updated successfully, but these errors were encountered: