From d7b4bd8e73f4e9cd3494bb18162e3dedb379e479 Mon Sep 17 00:00:00 2001 From: Archez Date: Tue, 20 Feb 2024 20:33:04 -0500 Subject: [PATCH] fix snowhead pillar memcpy (#130) --- mm/src/overlays/actors/ovl_Bg_Hakugin_Post/z_bg_hakugin_post.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/src/overlays/actors/ovl_Bg_Hakugin_Post/z_bg_hakugin_post.c b/mm/src/overlays/actors/ovl_Bg_Hakugin_Post/z_bg_hakugin_post.c index 0971a1124..4a28cc347 100644 --- a/mm/src/overlays/actors/ovl_Bg_Hakugin_Post/z_bg_hakugin_post.c +++ b/mm/src/overlays/actors/ovl_Bg_Hakugin_Post/z_bg_hakugin_post.c @@ -149,7 +149,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--) { - memcpy(&unkStruct->unk_0000[j + 1], &unkStruct->unk_0000[j], 0x38); + memcpy(&unkStruct->unk_0000[j + 1], &unkStruct->unk_0000[j], sizeof(BgHakuginPostUnkStruct1)); } break; }