summaryrefslogtreecommitdiff
path: root/src/strgen
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2019-01-29 22:11:18 +0100
committerglx22 <glx22@users.noreply.github.com>2019-01-29 22:25:50 +0100
commit2fcd4e61db3d6df40cf814718e3ab5d26777f47d (patch)
tree322c6c99dcf40be7aa6f5e89386b54be024b6671 /src/strgen
parenta1c37810108492c64913c95f8db72b1beed32fb0 (diff)
downloadopenttd-2fcd4e61db3d6df40cf814718e3ab5d26777f47d.tar.xz
Fix: make sure strgen fails when english.txt contains invalid commands
Diffstat (limited to 'src/strgen')
-rw-r--r--src/strgen/strgen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp
index 44cbd127a..98e11e2eb 100644
--- a/src/strgen/strgen.cpp
+++ b/src/strgen/strgen.cpp
@@ -540,6 +540,7 @@ int CDECL main(int argc, char *argv[])
HeaderFileWriter writer(pathbuf);
writer.WriteHeader(data);
writer.Finalise(data);
+ if (_errors != 0) return 1;
} else if (mgo.numleft >= 1) {
char *r;