forked from github/server
fix an assert that was too picky
This commit is contained in:
parent
775e8edae1
commit
ad05ec8c53
|
@ -776,7 +776,7 @@ ship *leftship(const unit * u)
|
||||||
|
|
||||||
void u_set_building(unit * u, building * b)
|
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;
|
u->building = b;
|
||||||
if (b && !b->_owner) {
|
if (b && !b->_owner) {
|
||||||
building_set_owner(b, u);
|
building_set_owner(b, u);
|
||||||
|
|
Loading…
Reference in New Issue