overlord: Fix LookupSoundIndex (#1267)

This commit is contained in:
Ziemas
2022-04-01 01:30:03 +02:00
committed by GitHub
parent 67b4afc506
commit 6f28633bc4
+1 -1
View File
@@ -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;
}