… | |
… | |
1488 | object *tmp, *tmp1; |
1488 | object *tmp, *tmp1; |
1489 | |
1489 | |
1490 | /* first search for itself and remove any old instances */ |
1490 | /* first search for itself and remove any old instances */ |
1491 | |
1491 | |
1492 | for (tmp = op->ms ().bot; tmp; tmp = tmp->above) |
1492 | for (tmp = op->ms ().bot; tmp; tmp = tmp->above) |
1493 | if (!strcmp (tmp->arch->name, arch_string)) /* same archetype */ |
1493 | if (!strcmp (tmp->arch->archname, arch_string)) /* same archetype */ |
1494 | tmp->destroy (); |
1494 | tmp->destroy (); |
1495 | |
1495 | |
1496 | tmp1 = arch_to_object (archetype::find (arch_string)); |
1496 | tmp1 = arch_to_object (archetype::find (arch_string)); |
1497 | |
1497 | |
1498 | tmp1->x = op->x; |
1498 | tmp1->x = op->x; |