summaryrefslogtreecommitdiffhomepage
path: root/src/world.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/world.cpp b/src/world.cpp
index ef85732e..07cfe196 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -118,7 +118,7 @@ void world::do_make_entity(const std::shared_ptr<entity>& e, global_coords pos,
fm_assert(!_entities.contains(e->id));
fm_assert(Vector2ui(e->bbox_size).product() > 0);
fm_assert(e->type != entity_type::none);
- e->coord = pos;
+ const_cast<global_coords&>(e->coord) = pos;
_entities[e->id] = e;
if (sorted)
e->c->add_entity(e);