mirror of
https://github.com/open-goal/jak-project
synced 2026-05-27 08:09:29 -04:00
overlord: Fix LookupSoundIndex (#1267)
This commit is contained in:
@@ -61,7 +61,7 @@ s32 LookupSoundIndex(const char* name, SoundBank** bank_out) {
|
||||
}
|
||||
|
||||
for (int i = 0; i < bank->sound_count; i++) {
|
||||
if (memcmp(bank->name, name, 16) == 0) {
|
||||
if (memcmp(bank->sound[i].name, name, 16) == 0) {
|
||||
*bank_out = bank;
|
||||
return i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user