test that we are the owner of the building first.

This commit is contained in:
Enno Rehling 2012-05-18 21:46:41 -07:00
parent 57fbc7809c
commit e501ed5bbd

View file

@ -2989,14 +2989,14 @@ static int renumber_cmd(unit * u, order * ord)
cmistake(u, ord, 144, MSG_EVENT);
break;
}
if (u->ship->coast != NODIRECTION) {
cmistake(u, ord, 116, MSG_EVENT);
break;
}
if (ship_owner(u->ship)!=u) {
cmistake(u, ord, 146, MSG_EVENT);
break;
}
if (u->ship->coast != NODIRECTION) {
cmistake(u, ord, 116, MSG_EVENT);
break;
}
s = getstrtoken();
if (s == NULL || *s == 0) {
i = newcontainerid();