From 5dd254258656f262906984f59a8d484b4413079d Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 21 Jan 2006 18:10:46 +0000 Subject: [PATCH] Fehler bei neuem itemlisten-argument --- src/common/gamecode/creport.c | 3 ++- src/common/kernel/build.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/gamecode/creport.c b/src/common/gamecode/creport.c index e31ccbc81..739832454 100644 --- a/src/common/gamecode/creport.c +++ b/src/common/gamecode/creport.c @@ -413,7 +413,7 @@ cr_resources(variant var, char * buffer, const void * userdata) resource * rlist = (resource*)var.v; char * wp = buffer; if (rlist!=NULL) { - wp += sprintf(wp, "%d %s", rlist->number, + wp += sprintf(wp, "\"%d %s", rlist->number, resourcename(rlist->type, rlist->number!=1)); for (;;) { rlist = rlist->next; @@ -421,6 +421,7 @@ cr_resources(variant var, char * buffer, const void * userdata) wp += sprintf(wp, ", %d %s", rlist->number, resourcename(rlist->type, rlist->number!=1)); } + strcat(wp, "\""); } return 0; } diff --git a/src/common/kernel/build.c b/src/common/kernel/build.c index b648463f3..9d0121b8b 100644 --- a/src/common/kernel/build.c +++ b/src/common/kernel/build.c @@ -889,7 +889,7 @@ build_building(unit * u, const building_type * btype, int want, order * ord) res->number = cons->materials[c].number / cons->reqsize; res->type = cons->materials[c].rtype; res->next = reslist; - reslist = res->next; + reslist = res; } ADDMSG(&u->faction->msgs, msg_feedback(u, ord, "build_required", "required", reslist));