fix a serious issue where repeated orders were getting lost

This commit is contained in:
Enno Rehling 2012-05-18 23:57:20 -07:00
parent b95f7ec139
commit 504a70a9c6

View file

@ -291,7 +291,8 @@ static unit *unitorders(FILE * F, int enc, struct faction *f)
if (s == NULL) if (s == NULL)
break; break;
if (s[0] && s[0]!='@') { if (s[0]) {
if (s[0]!='@') {
const char *stok = s; const char *stok = s;
stok = parse_token(&stok); stok = parse_token(&stok);
@ -322,12 +323,14 @@ static unit *unitorders(FILE * F, int enc, struct faction *f)
break; break;
} }
} }
}
/* Nun wird der Befehl erzeut und eingehängt */ /* Nun wird der Befehl erzeut und eingehängt */
*ordp = parse_order(s, u->faction->locale); *ordp = parse_order(s, u->faction->locale);
if (*ordp) if (*ordp) {
ordp = &(*ordp)->next; ordp = &(*ordp)->next;
} }
} }
}
} else { } else {
/* cmistake(?, buf, 160, MSG_EVENT); */ /* cmistake(?, buf, 160, MSG_EVENT); */