crashbug, weil "too many units" message char * satt order * übergeben bekommt.

This commit is contained in:
Enno Rehling 2005-05-20 22:39:22 +00:00
parent 5f3c13521e
commit 71296bfced
1 changed files with 4 additions and 4 deletions

View File

@ -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;