* neues assert auf otherfaction.

This commit is contained in:
Enno Rehling 2002-03-24 09:58:41 +00:00
parent b0895ad7cd
commit 5a31694246
1 changed files with 2 additions and 5 deletions

View File

@ -852,11 +852,8 @@ visible_faction(const faction *f, const unit * u)
attrib *a = a_find(u->attribs, &at_otherfaction);
if (a) {
faction *fv = get_otherfaction(a);
if(fv != NULL) {
return fv; /* fv should never be NULL! */
} else {
a_removeall(&u->attribs, &at_otherfaction); /* workaround, if this is triggered, it's a bug */
}
assert (fv != NULL); /* fv should never be NULL! */
return fv;
}
}
return u->faction;