… | |
… | |
1018 | |
1018 | |
1019 | assert (arch); //D maybe use exception handling of sorts? |
1019 | assert (arch); //D maybe use exception handling of sorts? |
1020 | |
1020 | |
1021 | f.next (); |
1021 | f.next (); |
1022 | |
1022 | |
1023 | object *op = object::create (); |
1023 | object *op = arch->instance (); |
1024 | |
|
|
1025 | op->map = map; |
1024 | op->map = map; |
1026 | arch->copy_to (op); |
|
|
1027 | // copy_to activates, this should be fixed properly |
1025 | // instance() activates, this should be fixed properly |
1028 | op->deactivate (); |
1026 | op->deactivate (); |
1029 | |
1027 | |
1030 | if (!op->parse_kv (f)) |
1028 | if (!op->parse_kv (f)) |
1031 | { |
1029 | { |
1032 | op->destroy (true); |
1030 | op->destroy (true); |