From 13ac642ce8fd06b9f89ad510d950a6ddfb3715c7 Mon Sep 17 00:00:00 2001 From: Katja Zedel Date: Tue, 22 Oct 2002 10:16:57 +0000 Subject: [PATCH] =?UTF-8?q?fix=20falsche=20Fehlermeldung=20bei=20Kr=C3=A4u?= =?UTF-8?q?ter=C3=BCbergabe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/gamecode/economy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/gamecode/economy.c b/src/common/gamecode/economy.c index 4a5759d8a..135247e6b 100644 --- a/src/common/gamecode/economy.c +++ b/src/common/gamecode/economy.c @@ -931,7 +931,10 @@ dogive(region * r, unit * u, strlist * S, boolean liefere, int mode) while (*itmp) { const herb_type * htype = resource2herb((*itmp)->type->rtype); if (htype && (*itmp)->number>0) { + /* give_item gibt bei erfolg 0 zurück if (give_item((*itmp)->number, (*itmp)->type, u, u2, S->s)==0) continue; + */ + give_item((*itmp)->number, (*itmp)->type, u, u2, S->s); n = 1; } itmp = &(*itmp)->next;