From 63933461efc9f3073e07b85f5c761ca371bb79cd Mon Sep 17 00:00:00 2001 From: Sonic Dreamcaster Date: Wed, 3 Apr 2024 01:37:20 -0300 Subject: [PATCH] fix level select --- src/engine/fox_message.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/fox_message.c b/src/engine/fox_message.c index 26e73290..888bd59a 100644 --- a/src/engine/fox_message.c +++ b/src/engine/fox_message.c @@ -41,13 +41,14 @@ s32 Message_GetWidth(u16* msgPtr) { } s32 Message_GetCharCount(u16* msgPtr) { + s32 count = 0; + u16* msgChar = msgPtr; + #if MODS_LEVEL_SELECT == 1 if (gCurrentPlanet == 6) { return 0; } #endif - s32 count = 0; - u16* msgChar = msgPtr; while (*msgChar != NULL) { count++;