push und pop verwechselt

This commit is contained in:
Enno Rehling 2005-05-01 13:33:34 +00:00
parent cd35efefb4
commit 50e4d785a4
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -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;