Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
semyon422 committed May 21, 2024
1 parent a332382 commit ec27880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphere/models/RhythmModel/LogicEngine/NoteHandler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function NoteHandler:load()
end

self.startNoteIndex = 1
self.endNoteIndex = 1
self.endNoteIndex = 0
end

function NoteHandler:updateRange()
Expand All @@ -59,7 +59,7 @@ function NoteHandler:updateRange()
end

local eventTime = self.logicEngine:getEventTime()
for i = self.endNoteIndex, #notes do
for i = self.endNoteIndex + 1, #notes do
local note = notes[i].note
if not note.ended and note.isPlayable and note:getNoteTime() >= eventTime then
self.endNoteIndex = i
Expand Down

0 comments on commit ec27880

Please sign in to comment.