diff options
Diffstat (limited to 'src/core/entity.cc')
-rw-r--r-- | src/core/entity.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/entity.cc b/src/core/entity.cc index 35164dc..013e66d 100644 --- a/src/core/entity.cc +++ b/src/core/entity.cc @@ -266,13 +266,9 @@ void Entity::clear_updates() } } -void Entity::set_info(Info *info) +void Entity::set_info(const Info *info) { entity_info = info; - if (entity_info) { - entity_info->set_model(model()); - entity_info->set_name(name()); - } } void Entity::set_inventory(Inventory *inventory) @@ -318,10 +314,6 @@ void Entity::set_model(model::Model *model) if (entity_model) { entity_modelname.assign(entity_model->name()); } - - if (entity_info) { - entity_info->set_model(entity_model); - } } void Entity::set_modelname(const std::string &modelname) |