summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-26 21:28:13 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-27 18:30:56 +0200
commited9e38221a63133abd9caa97d1eff51a05deb4c2 (patch)
tree573f11ffc545d2e7417faf0841f67e15c3907f9b
parentb280f163168f6c1036d7a3b0dee552ac68abddf4 (diff)
downloadopenttd-ed9e38221a63133abd9caa97d1eff51a05deb4c2.tar.xz
Cleanup: remove dead code; ++ on ostreambuf_iterator is a no-op
-rw-r--r--src/newgrf_text.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp
index fcbca12b6..f1fac8b51 100644
--- a/src/newgrf_text.cpp
+++ b/src/newgrf_text.cpp
@@ -398,7 +398,6 @@ std::string TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, bool allow_n
int index = (code == 0x10 ? *src++ : 0);
if (mapping->strings.find(index) != mapping->strings.end()) {
grfmsg(1, "duplicate choice list string, ignoring");
- d++;
} else {
d = std::ostreambuf_iterator<char>(mapping->strings[index]);
}