diff --git a/rogue3/state.c b/rogue3/state.c index 9d1855c..e30496c 100644 --- a/rogue3/state.c +++ b/rogue3/state.c @@ -681,14 +681,13 @@ rs_read_daemons(FILE *savef, struct delayed_action *dlist, int cnt) default:dlist[i].d_func = NULL; break; } + if (dlist[i].d_func == NULL) + { + dlist[i].d_type = 0; + dlist[i].d_arg = 0; + dlist[i].d_time = 0; + } } - - if (dlist[i].d_func == NULL) - { - dlist[i].d_type = 0; - dlist[i].d_arg = 0; - dlist[i].d_time = 0; - } } void diff --git a/rogue5/state.c b/rogue5/state.c index 5132386..204ae72 100644 --- a/rogue5/state.c +++ b/rogue5/state.c @@ -660,14 +660,15 @@ rs_read_daemons(FILE *savef, struct delayed_action *dlist, int cnt) default:dlist[i].d_func = NULL; break; } + + if (dlist[i].d_func == NULL) + { + dlist[i].d_type = 0; + dlist[i].d_arg = 0; + dlist[i].d_time = 0; + } } - if (dlist[i].d_func == NULL) - { - dlist[i].d_type = 0; - dlist[i].d_arg = 0; - dlist[i].d_time = 0; - } } void