complain properly when the orders are not readable!

This commit is contained in:
Enno Rehling 2012-05-19 16:54:19 -07:00
parent 71f1e35f6d
commit 0fc37c9c59
1 changed files with 5 additions and 3 deletions

View File

@ -387,10 +387,12 @@ int readorders(const char *filename)
int nfactions = 0;
struct faction *f = NULL;
if (filename)
if (filename) {
F = cfopen(filename, "rb");
if (F == NULL)
return 0;
}
if (!F) {
return -1;
}
if (verbosity >= 1)
puts(" - lese Befehlsdatei...\n");