forked from github/server
* neues assert auf otherfaction.
This commit is contained in:
parent
b0895ad7cd
commit
5a31694246
|
@ -852,11 +852,8 @@ visible_faction(const faction *f, const unit * u)
|
||||||
attrib *a = a_find(u->attribs, &at_otherfaction);
|
attrib *a = a_find(u->attribs, &at_otherfaction);
|
||||||
if (a) {
|
if (a) {
|
||||||
faction *fv = get_otherfaction(a);
|
faction *fv = get_otherfaction(a);
|
||||||
if(fv != NULL) {
|
assert (fv != NULL); /* fv should never be NULL! */
|
||||||
return fv; /* fv should never be NULL! */
|
return fv;
|
||||||
} else {
|
|
||||||
a_removeall(&u->attribs, &at_otherfaction); /* workaround, if this is triggered, it's a bug */
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return u->faction;
|
return u->faction;
|
||||||
|
|
Loading…
Reference in New Issue