forked from github/server
- Bei Übergaben an andere Parteien werden alle Befehle einer Einheit gelöscht.
This commit is contained in:
parent
55d76ef3b8
commit
f4dde86b93
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue