mirror of https://github.com/OpenTTD/OpenTTD
Cleanup: remove dead code; ++ on ostreambuf_iterator is a no-op
parent
b280f16316
commit
ed9e38221a
|
@ -398,7 +398,6 @@ std::string TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, bool allow_n
|
||||||
int index = (code == 0x10 ? *src++ : 0);
|
int index = (code == 0x10 ? *src++ : 0);
|
||||||
if (mapping->strings.find(index) != mapping->strings.end()) {
|
if (mapping->strings.find(index) != mapping->strings.end()) {
|
||||||
grfmsg(1, "duplicate choice list string, ignoring");
|
grfmsg(1, "duplicate choice list string, ignoring");
|
||||||
d++;
|
|
||||||
} else {
|
} else {
|
||||||
d = std::ostreambuf_iterator<char>(mapping->strings[index]);
|
d = std::ostreambuf_iterator<char>(mapping->strings[index]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue