From f4dde86b93e00e59ae3a7470800d0d734c044780 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 14 Jun 2004 21:52:12 +0000 Subject: [PATCH] =?UTF-8?q?-=20Bei=20=C3=9Cbergaben=20an=20andere=20Partei?= =?UTF-8?q?en=20werden=20alle=20Befehle=20einer=20Einheit=20gel=C3=B6scht.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/kernel/unit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/kernel/unit.c b/src/common/kernel/unit.c index bcd3cc104..11afd74c6 100644 --- a/src/common/kernel/unit.c +++ b/src/common/kernel/unit.c @@ -810,6 +810,10 @@ u_setfaction(unit * u, faction * f) set_number(u, 0); --u->faction->no_units; join_group(u, NULL); + freelist(u->orders); + u->orders = NULL; + set_string(&u->thisorder, ""); + set_string(&u->lastorder, ""); } if (u->prevF) u->prevF->nextF = u->nextF; else if (u->faction) {