From e67f9b089208de218cd059608ae99954a5d155de Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 26 Oct 2005 19:47:28 +0000 Subject: [PATCH] still fixing the seeds. mapper comes later --- src/common/gamecode/economy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/gamecode/economy.c b/src/common/gamecode/economy.c index d46962fc7..7b6963ec5 100644 --- a/src/common/gamecode/economy.c +++ b/src/common/gamecode/economy.c @@ -1203,7 +1203,7 @@ allocate_resource(unit * u, const resource_type * rtype, int want) /* momentan kann man keine ressourcen abbauen, wenn man dafür * Materialverbrauch hat: */ - assert(itype!=NULL && itype->construction->materials==NULL); + assert(itype!=NULL && (itype->construction==NULL || itype->construction->materials==NULL)); if (itype == olditemtype[I_WOOD] && fval(r, RF_MALLORN)) { cmistake(u, u->thisorder, 92, MSG_PRODUCE);