diff --git a/src/common/gamecode/study.c b/src/common/gamecode/study.c index 8e7e9a59a..f0a432c4c 100644 --- a/src/common/gamecode/study.c +++ b/src/common/gamecode/study.c @@ -427,7 +427,7 @@ teach(unit * u, struct order * ord) #ifdef LASTORDER set_order(&u->lastorder, new_order); #else - replace_order(ord, new_order); + replace_order(&u->orders, ord, new_order); free_order(new_order); /* parse_order & set_order have each increased the refcount */ #endif }