From 8302870fec77bc0cc8df43f87734d5fbf2220b7e Mon Sep 17 00:00:00 2001 From: notmatthewbeshay <92357869+NotMachow@users.noreply.github.com> Date: Wed, 11 Mar 2026 01:08:59 +1100 Subject: [PATCH] Use standard wide string returns for tutorial messages --- Minecraft.Client/Platform/Common/Tutorial/TutorialMessage.cpp | 4 ++-- Minecraft.Client/Platform/Common/Tutorial/TutorialMessage.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Minecraft.Client/Platform/Common/Tutorial/TutorialMessage.cpp b/Minecraft.Client/Platform/Common/Tutorial/TutorialMessage.cpp index 1e4233f28..dfae8b21c 100644 --- a/Minecraft.Client/Platform/Common/Tutorial/TutorialMessage.cpp +++ b/Minecraft.Client/Platform/Common/Tutorial/TutorialMessage.cpp @@ -11,7 +11,7 @@ bool TutorialMessage::canDisplay() return !limitRepeats || (timesShown < numRepeats); } -LPCWSTR TutorialMessage::getMessageForDisplay() +const wchar_t *TutorialMessage::getMessageForDisplay() { if(!canDisplay()) return L""; @@ -20,4 +20,4 @@ LPCWSTR TutorialMessage::getMessageForDisplay() ++timesShown; return app.GetString( messageId ); -} \ No newline at end of file +} diff --git a/Minecraft.Client/Platform/Common/Tutorial/TutorialMessage.h b/Minecraft.Client/Platform/Common/Tutorial/TutorialMessage.h index 6a0b4d460..2a5bb1def 100644 --- a/Minecraft.Client/Platform/Common/Tutorial/TutorialMessage.h +++ b/Minecraft.Client/Platform/Common/Tutorial/TutorialMessage.h @@ -16,5 +16,5 @@ public: TutorialMessage(int messageId, bool limitRepeats = false, unsigned char numRepeats = TUTORIAL_MESSAGE_DEFAULT_SHOW); bool canDisplay(); - LPCWSTR getMessageForDisplay(); -}; \ No newline at end of file + const wchar_t *getMessageForDisplay(); +};