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:
committed by
GitHub
parent
edc5e8f7d4
commit
700fba28dd
@@ -89,12 +89,12 @@ void CustomMessage::Replace(std::string&& oldStr, std::string&& newEnglish, std:
|
|||||||
}
|
}
|
||||||
position = french.find(oldStr);
|
position = french.find(oldStr);
|
||||||
while (position != std::string::npos) {
|
while (position != std::string::npos) {
|
||||||
french.replace(position, oldStr.length(), newEnglish);
|
french.replace(position, oldStr.length(), newFrench);
|
||||||
position = french.find(oldStr);
|
position = french.find(oldStr);
|
||||||
}
|
}
|
||||||
position = german.find(oldStr);
|
position = german.find(oldStr);
|
||||||
while (position != std::string::npos) {
|
while (position != std::string::npos) {
|
||||||
german.replace(position, oldStr.length(), newEnglish);
|
german.replace(position, oldStr.length(), newGerman);
|
||||||
position = german.find(oldStr);
|
position = german.find(oldStr);
|
||||||
}
|
}
|
||||||
Format();
|
Format();
|
||||||
|
|||||||
Reference in New Issue
Block a user