bg_hakugin_post: replace hardcoded size for sizeof (#1608)

This commit is contained in:
Archez 2024-04-06 11:52:24 -04:00 committed by GitHub
parent 250be53cde
commit 7e9bdb202a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ void func_80A9AFB4(BgHakuginPost* this, PlayState* play, BgHakuginPostUnkStruct*
if ((unkStruct->unk_0000[i].unk_34 == 0) ||
(this->dyna.actor.world.pos.y < unkStruct->unk_0000[i].unk_08.y)) {
for (j = 10; j >= i; j--) {
bcopy(&unkStruct->unk_0000[j], &unkStruct->unk_0000[j + 1], 0x38);
bcopy(&unkStruct->unk_0000[j], &unkStruct->unk_0000[j + 1], sizeof(BgHakuginPostUnkStruct1));
}
break;
}