mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-16 15:20:11 -05:00
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:
parent
edc5e8f7d4
commit
700fba28dd
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user