Fixes color replacement from being saved to the save file.

This was bad because replacing `%w` with `\x05\x00` was causing
the string to prematurely terminate.
This commit is contained in:
Christopher Leggett 2022-08-16 23:02:52 -04:00
parent ecaf0fd87a
commit b6d6ede520
No known key found for this signature in database
GPG Key ID: 7093AE5FF7037D79

View File

@ -1923,8 +1923,6 @@ std::string AltarIconString(char iconChar) {
std::string FormatJsonHintText(std::string jsonHint) {
std::string formattedHintMessage = jsonHint;
CustomMessageManager::Instance->FormatCustomMessage(formattedHintMessage);
// add icons to altar text
for (char iconChar : {'0', '1', '2', '3', '4', '5', '6', '7', '8', 'o', 'c', 'i', 'l', 'b', 'L', 'k'}) {
std::string textToReplace = "$";