giving command to empty units is a mistake.
This commit is contained in:
Enno Rehling 2010-12-04 17:35:49 -08:00
parent c421cf0677
commit e0d70b096a
1 changed files with 1 additions and 1 deletions

View File

@ -654,7 +654,7 @@ give_control_cmd(unit * u, order * ord)
if (p == P_CONTROL) {
message * msg;
if (!u2) {
if (!u2 || u2->number==0) {
ADDMSG(&u->faction->msgs, msg_feedback(u, ord, "feedback_unit_not_found", ""));
}
else if (!u->building && !u->ship) {