forked from github/server
crash if a watcher faction has quit.
This commit is contained in:
parent
7f370585ad
commit
9f8c55b492
|
@ -2161,8 +2161,10 @@ update_intervals(void)
|
|||
struct watcher * w = p->watchers;
|
||||
while (w) {
|
||||
faction * f = w->faction;
|
||||
if (f!=NULL) {
|
||||
if (f->first==NULL) f->first = r;
|
||||
f->last = r->next;
|
||||
}
|
||||
w = w->next;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue