forked from github/server
alliedunit() bugfix
This commit is contained in:
parent
961a036d19
commit
8c8f36f64c
|
@ -785,7 +785,7 @@ alliedunit(const unit * u, const faction * f2, int mode)
|
||||||
sf = u->faction->allies;
|
sf = u->faction->allies;
|
||||||
a = a_find(u->attribs, &at_group);
|
a = a_find(u->attribs, &at_group);
|
||||||
if (a!=NULL) sf = ((group*)a->data.v)->allies;
|
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
|
boolean
|
||||||
|
|
Loading…
Reference in New Issue