diff options
Diffstat (limited to 'src/core/parser.cc')
-rw-r--r-- | src/core/parser.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/parser.cc b/src/core/parser.cc index 8018bf7..3806b99 100644 --- a/src/core/parser.cc +++ b/src/core/parser.cc @@ -42,16 +42,16 @@ bool Parser::got_entity_key(filesystem::IniFile &inifile, core::Entity *entity) if (inifile.got_key_string("shape", shapename)) { if (shapename.compare("axis") == 0) { - entity->entity_shape = core::Entity::Axis; + entity->set_shape(core::Entity::Axis); return true; } else if (shapename.compare("cube") == 0) { - entity->entity_shape = core::Entity::Cube; + entity->set_shape(core::Entity::Cube); return true; } else if (shapename.compare("diamond") == 0) { - entity->entity_shape = core::Entity::Diamond; + entity->set_shape(core::Entity::Diamond); return true; } else if (shapename.compare("sphere") == 0) { - entity->entity_shape = core::Entity::Sphere; + entity->set_shape(core::Entity::Sphere); return true; } else { con_warn << inifile.name() << " unknown shape '" << shapename << "' at line " << inifile.line() << std::endl; |