forked from github/server
fix falsche Fehlermeldung bei Kräuterübergabe
This commit is contained in:
parent
326e4be90d
commit
13ac642ce8
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue