forked from github/server
complain properly when the orders are not readable!
This commit is contained in:
parent
71f1e35f6d
commit
0fc37c9c59
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue