dance864_charttool: Fix stupid slowdown at end

This commit is contained in:
987123879113 2022-08-31 02:16:40 +09:00
parent df2d04a150
commit a2e9242a9a
1 changed files with 4 additions and 1 deletions

View File

@ -103,10 +103,13 @@ def convert_chart_to_sm(filename, songlist_entry):
next_event = None
for event2 in events[event_idx+1:]:
if event2['event'] in ["beat", "end"]:
if event2['event'] in ["beat"]:
next_event = event2
break
if next_event['event'] == "end":
continue
assert(next_event is not None)
beat_count = beat_vals.index(event)