forked from github/server
handle regions that have no owner
This commit is contained in:
parent
7fe07439f5
commit
c823a3b036
|
@ -58,7 +58,8 @@ attrib_type at_otherfaction = {
|
||||||
|
|
||||||
struct faction *get_otherfaction(const struct attrib *a)
|
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)
|
struct attrib *make_otherfaction(struct faction *f)
|
||||||
|
|
Loading…
Reference in New Issue