forked from github/server
bugfixe give_cmd (cannot give more persons than the unit has).
This commit is contained in:
parent
4ac7258f96
commit
dca9d7e9cb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue