From cd35efefb4bbb0d4efc4680190a03a707a941cea Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 1 May 2005 13:08:11 +0000 Subject: [PATCH] einmal parser_pushstate() vergessen. --- src/common/gamecode/study.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/gamecode/study.c b/src/common/gamecode/study.c index 6ffcba9c7..c3f129d73 100644 --- a/src/common/gamecode/study.c +++ b/src/common/gamecode/study.c @@ -337,8 +337,6 @@ teach(unit * u, struct order * ord) order * new_order; strcpy(zOrder, locale_string(u->faction->locale, keywords[K_TEACH])); - init_tokens(ord); - skip_token(); for (;;) { u2 = getunit(r, u->faction); @@ -407,10 +405,14 @@ teach(unit * u, struct order * ord) msg_feedback(u, ord, "teach_nolearn", "student", u2)); continue; } + /* Input ist nun von u2->thisorder !! */ + parser_pushstate(); init_tokens(u2->thisorder); skip_token(); sk = getskill(u2->faction->locale); + parser_pushstate(); + if (sk == NOSKILL) { add_message(&u->faction->msgs, msg_feedback(u, ord, "teach_nolearn", "student", u2));