From 700fba28dd77c048ac05ef661ea4b4417572af22 Mon Sep 17 00:00:00 2001 From: Christopher Leggett Date: Tue, 30 May 2023 08:45:33 -0400 Subject: [PATCH] Fixes regression in random rupee names (#2927) Technically was a CustomMessageManager bug but it was in a function that I believe is only used for random rupee names. --- soh/soh/Enhancements/custom-message/CustomMessageManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soh/soh/Enhancements/custom-message/CustomMessageManager.cpp b/soh/soh/Enhancements/custom-message/CustomMessageManager.cpp index 7110d25d3..4614ac731 100644 --- a/soh/soh/Enhancements/custom-message/CustomMessageManager.cpp +++ b/soh/soh/Enhancements/custom-message/CustomMessageManager.cpp @@ -89,12 +89,12 @@ void CustomMessage::Replace(std::string&& oldStr, std::string&& newEnglish, std: } position = french.find(oldStr); while (position != std::string::npos) { - french.replace(position, oldStr.length(), newEnglish); + french.replace(position, oldStr.length(), newFrench); position = french.find(oldStr); } position = german.find(oldStr); while (position != std::string::npos) { - german.replace(position, oldStr.length(), newEnglish); + german.replace(position, oldStr.length(), newGerman); position = german.find(oldStr); } Format();