endless loop

This commit is contained in:
Enno Rehling 2004-12-14 00:23:19 +00:00
parent 5a2eff08be
commit bd5aa5f04b
1 changed files with 10 additions and 9 deletions

View File

@ -235,7 +235,7 @@ setstealth_cmd(unit * u, struct order * ord)
unit * mu = u->faction->units;
while (mu!=NULL) {
unit * ru = mu->region->units;
if (mu->region==lastr) continue;
if (mu->region!=lastr) {
while (ru!=NULL) {
attrib *a = a_find(ru->attribs, &at_otherfaction);
if (a) {
@ -246,6 +246,7 @@ setstealth_cmd(unit * u, struct order * ord)
}
if (ru!=NULL) break;
lastr = mu->region;
}
mu = mu->nextF;
}
if (mu!=NULL) {