From 2fcd4e61db3d6df40cf814718e3ab5d26777f47d Mon Sep 17 00:00:00 2001 From: glx Date: Tue, 29 Jan 2019 22:11:18 +0100 Subject: Fix: make sure strgen fails when english.txt contains invalid commands --- src/strgen/strgen.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2