forked from github/server
push und pop verwechselt
This commit is contained in:
parent
cd35efefb4
commit
50e4d785a4
|
@ -411,7 +411,7 @@ teach(unit * u, struct order * ord)
|
||||||
init_tokens(u2->thisorder);
|
init_tokens(u2->thisorder);
|
||||||
skip_token();
|
skip_token();
|
||||||
sk = getskill(u2->faction->locale);
|
sk = getskill(u2->faction->locale);
|
||||||
parser_pushstate();
|
parser_popstate();
|
||||||
|
|
||||||
if (sk == NOSKILL) {
|
if (sk == NOSKILL) {
|
||||||
add_message(&u->faction->msgs,
|
add_message(&u->faction->msgs,
|
||||||
|
|
|
@ -489,6 +489,7 @@ unitorders(FILE * F, struct faction * f)
|
||||||
order * ord = *ordp;
|
order * ord = *ordp;
|
||||||
if (!is_repeated(ord)) {
|
if (!is_repeated(ord)) {
|
||||||
*ordp = ord->next;
|
*ordp = ord->next;
|
||||||
|
ord->next = NULL;
|
||||||
free_order(ord);
|
free_order(ord);
|
||||||
} else {
|
} else {
|
||||||
ordp = &ord->next;
|
ordp = &ord->next;
|
||||||
|
|
Loading…
Reference in New Issue