crash if a watcher faction has quit.

This commit is contained in:
Enno Rehling 2004-08-17 12:50:05 +00:00
parent 7f370585ad
commit 9f8c55b492
1 changed files with 4 additions and 2 deletions

View File

@ -2161,8 +2161,10 @@ update_intervals(void)
struct watcher * w = p->watchers;
while (w) {
faction * f = w->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;
}
w = w->next;
}
}