fix falsche Fehlermeldung bei Kräuterübergabe

This commit is contained in:
Katja Zedel 2002-10-22 10:16:57 +00:00
parent 326e4be90d
commit 13ac642ce8
1 changed files with 3 additions and 0 deletions

View File

@ -931,7 +931,10 @@ dogive(region * r, unit * u, strlist * S, boolean liefere, int mode)
while (*itmp) { while (*itmp) {
const herb_type * htype = resource2herb((*itmp)->type->rtype); const herb_type * htype = resource2herb((*itmp)->type->rtype);
if (htype && (*itmp)->number>0) { 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; 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; n = 1;
} }
itmp = &(*itmp)->next; itmp = &(*itmp)->next;