forked from github/server
test that we are the owner of the building first.
This commit is contained in:
parent
57fbc7809c
commit
e501ed5bbd
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue