From 40262c3466dee9b4a8effc6375a9c60da7fc7871 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 8 Sep 2004 23:17:37 +0000 Subject: [PATCH] http://eressea.upb.de/mantis/bug_view_page.php?bug_id=0000254 - ZERSTOERE STRASSE hat nicht geklappt, wenn mengenangabe --- src/common/kernel/build.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/kernel/build.c b/src/common/kernel/build.c index fe62b5e72..7f2073632 100644 --- a/src/common/kernel/build.c +++ b/src/common/kernel/build.c @@ -359,11 +359,6 @@ destroy_cmd(unit * u, struct order * ord) return 0; } - if (!fval(u, UFL_OWNER)) { - cmistake(u, ord, 138, MSG_PRODUCE); - return 0; - } - if (s && *s) { n = atoi(s); if(n <= 0) { @@ -377,6 +372,11 @@ destroy_cmd(unit * u, struct order * ord) return 0; } + if (!fval(u, UFL_OWNER)) { + cmistake(u, ord, 138, MSG_PRODUCE); + return 0; + } + if (u->building) { building *b = u->building; if (a_find(b->attribs, &at_nodestroy)) {