diff --git a/src/common/kernel/build.c b/src/common/kernel/build.c index e799c4f03..fd173f661 100644 --- a/src/common/kernel/build.c +++ b/src/common/kernel/build.c @@ -618,7 +618,7 @@ build(unit * u, const construction * ctype, int completed, int want) completed = completed % type->maxsize; } else { - completed = 0; assert(type->reqsize==1); + completed = 0; assert(type->reqsize>=1); } if (basesk < type->minskill) { diff --git a/src/mapper/autoseed.c b/src/mapper/autoseed.c index cb97b8d39..03a032b3a 100644 --- a/src/mapper/autoseed.c +++ b/src/mapper/autoseed.c @@ -22,6 +22,7 @@ /* libc includes */ #include #include +#include newfaction * newfactions = NULL;