diff --git a/src/common/kernel/eressea.c b/src/common/kernel/eressea.c index 84ac3e9cf..3ebf2d7aa 100644 --- a/src/common/kernel/eressea.c +++ b/src/common/kernel/eressea.c @@ -1952,8 +1952,10 @@ update_intervals(void) for (ru = a_find(r->attribs, &at_travelunit); ru; ru = ru->nexttype) { faction * f = ((unit*)ru->data.v)->faction; - if (f->first==NULL) f->first = r; - f->last = r->next; + if (f!=NULL) { + if (f->first==NULL) f->first = r; + f->last = r->next; + } } ulist = get_lighthouses(r);