min/max confusion. again.

This commit is contained in:
Enno Rehling 2007-05-28 17:32:15 +00:00
parent c1ba34a268
commit 0711b51cfe
1 changed files with 1 additions and 1 deletions

View File

@ -1093,7 +1093,7 @@ recruit_archetype(unit * u, order * ord)
if (a!=NULL) {
maxsize -= a->data.i;
}
n = max(maxsize/arch->size, n);
n = min(maxsize/arch->size, n);
if (n<=0) {
ADDMSG(&u->faction->msgs, msg_feedback(u, ord, "recruit_capacity_exhausted", "building", u->building));
/* TODO: error message */