forked from github/server
Einheiten mit 0 Personen werden nicht gefunden.
This commit is contained in:
parent
eb2334124e
commit
6899c4aae8
1 changed files with 10 additions and 6 deletions
|
@ -1685,7 +1685,11 @@ getunit(const region * r, const faction * f)
|
||||||
|
|
||||||
for (u2 = r->units; u2; u2 = u2->next) {
|
for (u2 = r->units; u2; u2 = u2->next) {
|
||||||
if (u2->no == n) {
|
if (u2->no == n) {
|
||||||
if ((u2->flags & UFL_ISNEW) || u2->number>0) return u2;
|
/* there used to be a '|| u2->number>0' condition here, but it got
|
||||||
|
* removed because of a bug that made units disappear:
|
||||||
|
* http://eressea.upb.de/mantis/bug_view_page.php?bug_id=0000172
|
||||||
|
*/
|
||||||
|
if (u2->flags & UFL_ISNEW) return u2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue