Skip to content

Commit 3b61283

Browse files
committed
[Sound] Fix off by one error that broke lipsync/mouth data.
1 parent 1b1f6f8 commit 3b61283

File tree

1 file changed

+2
-1
lines changed
  • BlamLib/BlamLib/Blam/Halo2/Tags/Code

1 file changed

+2
-1
lines changed

BlamLib/BlamLib/Blam/Halo2/Tags/Code/Sound.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,14 +414,15 @@ void Reconstruct(sound_cache_file_gestalt_group gestalt, cache_file_sound_group
414414
sample_offset += chunk.Data.Length;
415415
}
416416
permuation.Chunks.DeleteAll();
417-
permuation.RawInfo.Value = raw_permuation_index++;
417+
permuation.RawInfo.Value = raw_permuation_index;
418418

419419
if (gestalt_extra_info != null && gestalt_extra_info.EncodedPermutationSection.Count > 0)
420420
{
421421
sound_encoded_dialogue_section_block encoded_data = gestalt_extra_info.EncodedPermutationSection[0];
422422
raw_info.LipsyncData.Value = encoded_data.get_lipsync_data(raw_permuation_index);
423423
raw_info.MouthData.Value = encoded_data.get_mouth_data(raw_permuation_index);
424424
}
425+
raw_permuation_index++;
425426
}
426427
}
427428
// calculated in tags on load

0 commit comments

Comments
 (0)