diff --git a/src/attributes/otherfaction.c b/src/attributes/otherfaction.c index 8e4e7a6af..83196f959 100644 --- a/src/attributes/otherfaction.c +++ b/src/attributes/otherfaction.c @@ -58,7 +58,8 @@ attrib_type at_otherfaction = { struct faction *get_otherfaction(const struct attrib *a) { - return (faction *)(a->data.v); + faction * f = (faction *)(a->data.v); + return (f && f->_alive) ? f : NULL; } struct attrib *make_otherfaction(struct faction *f)