… | |
… | |
440 | return new_head; |
440 | return new_head; |
441 | } |
441 | } |
442 | |
442 | |
443 | fail: |
443 | fail: |
444 | for (auto (p, parts.begin ()); p != parts.end (); ++p) |
444 | for (auto (p, parts.begin ()); p != parts.end (); ++p) |
445 | (*p)->destroy (true); |
445 | (*p)->destroy (); |
446 | |
446 | |
447 | return 0; |
447 | return 0; |
448 | } |
448 | } |
449 | |
449 | |
450 | void |
450 | void |
… | |
… | |
552 | LOG (llevError | logBacktrace, "FATAL: creating singularity for '%s'.\n", name); |
552 | LOG (llevError | logBacktrace, "FATAL: creating singularity for '%s'.\n", name); |
553 | |
553 | |
554 | if (!strcmp (name, "bug")) |
554 | if (!strcmp (name, "bug")) |
555 | abort (); |
555 | abort (); |
556 | |
556 | |
557 | object *op = archetype::get ("bug"); |
557 | object *op = archetype::get (shstr_bug); |
558 | op->name = op->name_pl = format ("bug, please report (missing archetype %s)", name); |
558 | op->name = op->name_pl = format ("bug, please report (missing archetype %s)", name); |
559 | |
559 | |
560 | return op; |
560 | return op; |
561 | } |
561 | } |
562 | |
562 | |