diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 02:12:05 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 02:15:16 +0100 |
commit | 94c531bd05ab6b49996113faff9584cb6b534b9c (patch) | |
tree | 273aae5c8ee1f8c2801a2c5ca05ca52422e49a35 /src/world.cpp | |
parent | 703c19301f2e93fb59b468bdd635a9cc763fad3f (diff) |
loader: chdir to share/floormat
Diffstat (limited to 'src/world.cpp')
-rw-r--r-- | src/world.cpp | 2 |
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); |