bugfixe give_cmd (cannot give more persons than the unit has).

This commit is contained in:
Enno Rehling 2014-12-14 06:02:08 +01:00
parent 4ac7258f96
commit dca9d7e9cb
1 changed files with 1 additions and 0 deletions

View File

@ -750,6 +750,7 @@ void give_cmd(unit * u, order * ord)
msg_feedback(u, ord, "race_noregroup", "race", u_race(u)));
return;
}
n = _min(u->number, n);
msg = u2 ? give_men(n, u, u2, ord) : disband_men(n, u, ord);
if (msg) {
ADDMSG(&u->faction->msgs, msg);