release additional reference to recruit order

This commit is contained in:
Enno Rehling 2015-10-14 11:58:54 +02:00
parent f0671aafda
commit 20c9fb60dc
1 changed files with 3 additions and 1 deletions

View File

@ -399,6 +399,7 @@ void free_recruitments(recruitment * recruits)
while (rec->requests) {
request *req = rec->requests;
rec->requests = req->next;
free_order(req->ord);
free(req);
}
free(rec);
@ -953,8 +954,9 @@ void economics(region * r)
}
}
if (recruitorders)
if (recruitorders) {
expandrecruit(r, recruitorders);
}
remove_empty_units_in_region(r);
for (u = r->units; u; u = u->next) {