Use standard wide string returns for tutorial messages

This commit is contained in:
notmatthewbeshay 2026-03-11 01:08:59 +11:00
parent 377e1d2192
commit 8302870fec
2 changed files with 4 additions and 4 deletions

View file

@ -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 );
}
}

View file

@ -16,5 +16,5 @@ public:
TutorialMessage(int messageId, bool limitRepeats = false, unsigned char numRepeats = TUTORIAL_MESSAGE_DEFAULT_SHOW);
bool canDisplay();
LPCWSTR getMessageForDisplay();
};
const wchar_t *getMessageForDisplay();
};