Changeset - r25521:e92cb7deab9a
[Not reviewed]
master
0 1 0
rubidium42 - 3 years ago 2021-05-26 19:28:13
rubidium@openttd.org
Cleanup: remove dead code; ++ on ostreambuf_iterator is a no-op
1 file changed with 0 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_text.cpp
Show inline comments
 
@@ -395,13 +395,12 @@ std::string TranslateTTDPatchCodes(uint3
 
							grfmsg(1, "choice list %s marker found when not expected", code == 0x10 ? "next" : "default");
 
							break;
 
						} else {
 
							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]);
 
							}
 
						}
 
						break;
 

	
0 comments (0 inline, 0 general)