diff --git a/src/common/gamecode/monster.c b/src/common/gamecode/monster.c index 29df4d7de..da39db05b 100644 --- a/src/common/gamecode/monster.c +++ b/src/common/gamecode/monster.c @@ -987,14 +987,14 @@ plan_monsters(void) } break; } - if (long_order) { - set_order(&u->thisorder, copy_order(long_order)); + } + if (long_order) { + set_order(&u->thisorder, copy_order(long_order)); #ifdef LASTORDER - set_order(&u->lastorder, copy_order(long_order)); + set_order(&u->lastorder, copy_order(long_order)); #else - addlist(&u->orders, long_order); + addlist(&u->orders, long_order); #endif - } } } }