mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 01:49:10 +00:00
Fix: make sure strgen fails when english.txt contains invalid commands
This commit is contained in:
@@ -540,6 +540,7 @@ int CDECL main(int argc, char *argv[])
|
|||||||
HeaderFileWriter writer(pathbuf);
|
HeaderFileWriter writer(pathbuf);
|
||||||
writer.WriteHeader(data);
|
writer.WriteHeader(data);
|
||||||
writer.Finalise(data);
|
writer.Finalise(data);
|
||||||
|
if (_errors != 0) return 1;
|
||||||
} else if (mgo.numleft >= 1) {
|
} else if (mgo.numleft >= 1) {
|
||||||
char *r;
|
char *r;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user