From a6f5077609e84871abf9c24e7cb1cb307f2cc3af Mon Sep 17 00:00:00 2001 From: fgsfds Date: Thu, 14 Nov 2024 18:43:16 +0100 Subject: [PATCH] port: 64-bit: fix crash site --- port/src/preprocess/filebg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port/src/preprocess/filebg.c b/port/src/preprocess/filebg.c index 55f173364..6ff407310 100644 --- a/port/src/preprocess/filebg.c +++ b/port/src/preprocess/filebg.c @@ -266,7 +266,7 @@ static u32 convertRoomGfxData(u8 *dst, u8 *src, u32 infsize, u32 src_ofs) intptr_t endpos = (uintptr_t)dst_header->vertices - src_ofs; uintptr_t curpos_src = sizeof(struct n64_roomgfxdata); - uintptr_t curpos_dst = sizeof(struct roomgfxdata); + uintptr_t curpos_dst = sizeof(struct roomgfxdata) - sizeof(struct roomblock); // compensate for the [1] // roomblocks int ncoords = 0;