forked from github/server
complain properly when the orders are not readable!
This commit is contained in:
parent
71f1e35f6d
commit
0fc37c9c59
1 changed files with 5 additions and 3 deletions
|
@ -387,10 +387,12 @@ int readorders(const char *filename)
|
||||||
int nfactions = 0;
|
int nfactions = 0;
|
||||||
struct faction *f = NULL;
|
struct faction *f = NULL;
|
||||||
|
|
||||||
if (filename)
|
if (filename) {
|
||||||
F = cfopen(filename, "rb");
|
F = cfopen(filename, "rb");
|
||||||
if (F == NULL)
|
}
|
||||||
return 0;
|
if (!F) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
if (verbosity >= 1)
|
if (verbosity >= 1)
|
||||||
puts(" - lese Befehlsdatei...\n");
|
puts(" - lese Befehlsdatei...\n");
|
||||||
|
|
Loading…
Reference in a new issue