… | |
… | |
597 | } |
597 | } |
598 | else |
598 | else |
599 | { |
599 | { |
600 | for (i = 0; i < (set_nrof ? nrof : 1); i++) |
600 | for (i = 0; i < (set_nrof ? nrof : 1); i++) |
601 | { |
601 | { |
602 | archetype *atmp; |
|
|
603 | object *prev = 0, *head = 0; |
602 | object *prev = 0, *head = 0; |
604 | |
603 | |
605 | for (atmp = at; atmp; atmp = atmp->more) |
604 | for (archetype *atmp = at; atmp; atmp = (archetype *)atmp->more) |
606 | { |
605 | { |
607 | object *dup = arch_to_object (atmp); |
606 | object *dup = arch_to_object (atmp); |
608 | |
607 | |
609 | if (at_spell) |
608 | if (at_spell) |
610 | insert_ob_in_ob (arch_to_object (at_spell), dup); |
609 | insert_ob_in_ob (arch_to_object (at_spell), dup); |