diff --git a/src/common/modules/autoseed.c b/src/common/modules/autoseed.c index ed0a87b2f..53371fe07 100644 --- a/src/common/modules/autoseed.c +++ b/src/common/modules/autoseed.c @@ -567,13 +567,6 @@ autoseed(newfaction ** players, int nsize) } } - while (rlist) { - region_list * self = rlist; - rlist = rlist->next; - freset(self->data, FL_MARK); - free(self); - } - if (r!=NULL) { /* reicht das? */ fix_demand(r); @@ -640,6 +633,12 @@ autoseed(newfaction ** players, int nsize) } } } + while (rlist) { + region_list * self = rlist; + rlist = rlist->next; + freset(self->data, FL_MARK); + free(self); + } } return tsize; } diff --git a/src/common/modules/museum.c b/src/common/modules/museum.c index b3ffc4882..c536ca4c0 100644 --- a/src/common/modules/museum.c +++ b/src/common/modules/museum.c @@ -35,6 +35,7 @@ #include #include #include +#include /* util includes */ #include