forked from github/server
crashbug, weil "too many units" message char * satt order * übergeben bekommt.
This commit is contained in:
parent
5f3c13521e
commit
71296bfced
|
@ -3425,15 +3425,15 @@ new_units (void)
|
||||||
int g, alias;
|
int g, alias;
|
||||||
order ** newordersp;
|
order ** newordersp;
|
||||||
|
|
||||||
if(checkunitnumber(u->faction) == false) {
|
if (checkunitnumber(u->faction) == false) {
|
||||||
if(global.unitsperalliance == false) {
|
if (global.unitsperalliance == false) {
|
||||||
ADDMSG(&u->faction->msgs, msg_message("too_many_units_in_faction",
|
ADDMSG(&u->faction->msgs, msg_message("too_many_units_in_faction",
|
||||||
"command unit region allowed",
|
"command unit region allowed",
|
||||||
getcommand(makeord), u, r, maxunits(u->faction)));
|
makeord, u, r, maxunits(u->faction)));
|
||||||
} else {
|
} else {
|
||||||
ADDMSG(&u->faction->msgs, msg_message("too_many_units_in_alliance",
|
ADDMSG(&u->faction->msgs, msg_message("too_many_units_in_alliance",
|
||||||
"command unit region allowed",
|
"command unit region allowed",
|
||||||
getcommand(makeord), u, r, maxunits(u->faction)));
|
makeord, u, r, maxunits(u->faction)));
|
||||||
}
|
}
|
||||||
ordp = &makeord->next;
|
ordp = &makeord->next;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue