From 3704d0a627c3927acf2da225ec34d57c59ca9dd9 Mon Sep 17 00:00:00 2001 From: Viv Date: Wed, 19 Jul 2023 22:57:27 -0400 Subject: [PATCH] `converters.py`: Fix bug with HP byte --- src/tja2fumen/converters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tja2fumen/converters.py b/src/tja2fumen/converters.py index d9320c2..042888c 100644 --- a/src/tja2fumen/converters.py +++ b/src/tja2fumen/converters.py @@ -320,7 +320,7 @@ def convert_tja_to_fumen(tja): # Set song-specific metadata fumen.header.b512_b515_number_of_measures = len(fumen.measures) fumen.header.b432_b435_has_branches = int(all([len(b) for b in processed_tja_branches.values()])) - fumen.header.set_hp_bytes(total_notes, tja.course, tja.level) + fumen.header.set_hp_bytes(total_notes['normal'], tja.course, tja.level) # If song has only drumroll branching conditions, then only drumrolls should contribute to branching if all([condition[0] == 'r' for condition in branch_conditions]):