From 50e4d785a4497d6fd58d05ec30c557db84ab81a0 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 1 May 2005 13:33:34 +0000 Subject: [PATCH] push und pop verwechselt --- src/common/gamecode/study.c | 2 +- src/common/kernel/save.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/gamecode/study.c b/src/common/gamecode/study.c index c3f129d73..cd1aae8ab 100644 --- a/src/common/gamecode/study.c +++ b/src/common/gamecode/study.c @@ -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, diff --git a/src/common/kernel/save.c b/src/common/kernel/save.c index b05f7cc2d..ae11afbe1 100644 --- a/src/common/kernel/save.c +++ b/src/common/kernel/save.c @@ -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;