From c2d1d9b4bf7a1a95c7d66dec702bdd7488c1e76f Mon Sep 17 00:00:00 2001 From: fgsfds Date: Fri, 4 Aug 2023 01:25:18 +0200 Subject: [PATCH] port: don't crash when reading briefing in the mission screen --- src/game/setup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/setup.c b/src/game/setup.c index fd0d5f718..fc8381b30 100644 --- a/src/game/setup.c +++ b/src/game/setup.c @@ -1220,7 +1220,11 @@ void setupLoadBriefing(s32 stagenum, u8 *buffer, s32 bufferlen, struct briefing } setupfilenum = g_Stages[stageindex].setupfileid; +#ifdef PLATFORM_N64 // bug? g_LoadType = LOADTYPE_LANG; +#else + g_LoadType = LOADTYPE_SETUP; +#endif fileLoadToAddr(setupfilenum, FILELOADMETHOD_DEFAULT, buffer, bufferlen);