diff options
Diffstat (limited to 'NT/src/factory.h')
| -rw-r--r-- | NT/src/factory.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NT/src/factory.h b/NT/src/factory.h index 0482ebe..9d77cb7 100644 --- a/NT/src/factory.h +++ b/NT/src/factory.h @@ -13,7 +13,7 @@ namespace Rotor { for (auto t:type_map) delete t.second; } void add_type(Node* proto){ - type_map[proto->type]=proto; + type_map[proto->get_type()]=proto; }; void add_type(Node* proto,std::string category){ add_type(proto); |
