From aa9a89d60380cfef95ae50935ff6cacd4147161f Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 26 Jul 2005 16:37:07 +0000 Subject: [PATCH] bugfix autoseeding. this should no longer make those gigantic islands we've had before. --- src/common/modules/autoseed.c | 13 ++++++------- src/common/modules/museum.c | 1 + 2 files changed, 7 insertions(+), 7 deletions(-) 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