alliedunit() bugfix

This commit is contained in:
Enno Rehling 2002-12-14 16:19:05 +00:00
parent 961a036d19
commit 8c8f36f64c
1 changed files with 1 additions and 1 deletions

View File

@ -785,7 +785,7 @@ alliedunit(const unit * u, const faction * f2, int mode)
sf = u->faction->allies;
a = a_find(u->attribs, &at_group);
if (a!=NULL) sf = ((group*)a->data.v)->allies;
return alliance(sf, mode) | (mode & autoalliance(pl, u->faction, f2));
return alliedgroup(pl, u->faction, f2, sf, mode);
}
boolean