mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 13:00:11 -07: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
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue