diff options
author | glx <glx@openttd.org> | 2019-01-29 22:11:18 +0100 |
---|---|---|
committer | glx22 <glx22@users.noreply.github.com> | 2019-01-29 22:25:50 +0100 |
commit | 2fcd4e61db3d6df40cf814718e3ab5d26777f47d (patch) | |
tree | 322c6c99dcf40be7aa6f5e89386b54be024b6671 /src | |
parent | a1c37810108492c64913c95f8db72b1beed32fb0 (diff) | |
download | openttd-2fcd4e61db3d6df40cf814718e3ab5d26777f47d.tar.xz |
Fix: make sure strgen fails when english.txt contains invalid commands
Diffstat (limited to 'src')
-rw-r--r-- | src/strgen/strgen.cpp | 1 |
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; |