forked from github/server
kommentar zu give_item
This commit is contained in:
parent
13be7184aa
commit
33036fb8f8
|
@ -931,6 +931,8 @@ 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 ändert im fall,das man alles übergibt, die
|
||||||
|
* item-liste der unit, darum continue vor pointerumsetzten */
|
||||||
if (give_item((*itmp)->number, (*itmp)->type, u, u2, S->s)==0) {
|
if (give_item((*itmp)->number, (*itmp)->type, u, u2, S->s)==0) {
|
||||||
given = true;
|
given = true;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue