fix level select

This commit is contained in:
Sonic Dreamcaster
2024-04-03 01:33:51 -03:00
committed by KiritoDv
parent ab4826b537
commit dc3fe4def7
+7 -1
View File
@@ -1,4 +1,5 @@
#include "global.h"
#include "mods.h"
u16* Message_PtrFromId(u16 msgId) {
s32 i;
@@ -40,10 +41,15 @@ s32 Message_GetWidth(u16* msgPtr) {
}
s32 Message_GetCharCount(u16* msgPtr) {
#if MODS_LEVEL_SELECT == 1
if (gCurrentPlanet == 6) {
return 0;
}
#endif
s32 count = 0;
u16* msgChar = msgPtr;
while (*msgChar != 0) {
while (*msgChar != NULL) {
count++;
msgChar++;
}