Skip to content

Commit

Permalink
Fix packs with missing SFX
Browse files Browse the repository at this point in the history
  • Loading branch information
rrealmuto committed Dec 27, 2024
1 parent 7f86f64 commit 2a584d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Voices.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def process_pak_sfx_by_id(pak_sfx_id: int, sfx_id_map, pak_sounds, age, settings
# Randomly pick from the ones we've already added and duplicate them
for j in range(i, len(rom_targets)):
added = to_add[random.randint(0, i-1)]
to_add.append((added[0], 0, rom_targets[j], added[2], added[3], added[4], None))
to_add.append((added[0], 0, rom_targets[j], added[3], added[4], added[5], None))
else:
# We have more than what the game expects, just take the first ones based on the length we expect
for i in range(0, len(rom_targets)):
Expand Down

0 comments on commit 2a584d1

Please sign in to comment.