From ad05ec8c53cce2c56771f34683b85aa2872bac2d Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 18 May 2012 02:08:29 +0200 Subject: [PATCH] fix an assert that was too picky --- src/kernel/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/unit.c b/src/kernel/unit.c index f4dd38596..e71834270 100644 --- a/src/kernel/unit.c +++ b/src/kernel/unit.c @@ -776,7 +776,7 @@ ship *leftship(const unit * u) void u_set_building(unit * u, building * b) { - assert(b && !u->building); /* you must leave first */ + assert(!u->building); /* you must leave first */ u->building = b; if (b && !b->_owner) { building_set_owner(b, u);