forked from github/server
release additional reference to recruit order
This commit is contained in:
parent
f0671aafda
commit
20c9fb60dc
1 changed files with 3 additions and 1 deletions
|
@ -399,6 +399,7 @@ void free_recruitments(recruitment * recruits)
|
||||||
while (rec->requests) {
|
while (rec->requests) {
|
||||||
request *req = rec->requests;
|
request *req = rec->requests;
|
||||||
rec->requests = req->next;
|
rec->requests = req->next;
|
||||||
|
free_order(req->ord);
|
||||||
free(req);
|
free(req);
|
||||||
}
|
}
|
||||||
free(rec);
|
free(rec);
|
||||||
|
@ -953,8 +954,9 @@ void economics(region * r)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (recruitorders)
|
if (recruitorders) {
|
||||||
expandrecruit(r, recruitorders);
|
expandrecruit(r, recruitorders);
|
||||||
|
}
|
||||||
remove_empty_units_in_region(r);
|
remove_empty_units_in_region(r);
|
||||||
|
|
||||||
for (u = r->units; u; u = u->next) {
|
for (u = r->units; u; u = u->next) {
|
||||||
|
|
Loading…
Reference in a new issue