forked from github/server
push und pop verwechselt
This commit is contained in:
parent
cd35efefb4
commit
50e4d785a4
|
@ -411,7 +411,7 @@ teach(unit * u, struct order * ord)
|
|||
init_tokens(u2->thisorder);
|
||||
skip_token();
|
||||
sk = getskill(u2->faction->locale);
|
||||
parser_pushstate();
|
||||
parser_popstate();
|
||||
|
||||
if (sk == NOSKILL) {
|
||||
add_message(&u->faction->msgs,
|
||||
|
|
|
@ -489,6 +489,7 @@ unitorders(FILE * F, struct faction * f)
|
|||
order * ord = *ordp;
|
||||
if (!is_repeated(ord)) {
|
||||
*ordp = ord->next;
|
||||
ord->next = NULL;
|
||||
free_order(ord);
|
||||
} else {
|
||||
ordp = &ord->next;
|
||||
|
|
Loading…
Reference in New Issue