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.
This commit is contained in:
Christopher Leggett 2023-05-30 08:45:33 -04:00 committed by GitHub
parent edc5e8f7d4
commit 700fba28dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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