diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-18 01:45:19 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-19 14:32:18 +0100 |
| commit | 151e6911a8aa56749edbbf0c15ab04752d96c2f3 (patch) | |
| tree | 06fcf3d6551d1945b5717458aa09222c947ede04 /src/world.cpp | |
| parent | e77dc91b5d3e6a5181776a81cee2c3164c7b3cc9 (diff) | |
ccc
Diffstat (limited to 'src/world.cpp')
| -rw-r--r-- | src/world.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/world.cpp b/src/world.cpp index adbcf540..7a4fc079 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -231,16 +231,16 @@ shared_ptr_wrapper<critter> world::ensure_player_character(object_id& id_, critt for (const auto& [coord, c] : chunks()) // todo use world::_objects { - for (const auto& e_ : c.objects()) + for (const auto& eʹ : c.objects()) { - const auto& e = *e_; + const auto& e = *eʹ; if (e.type() == object_type::critter) { const auto& C = static_cast<const critter&>(e); if (C.playable) { id = std::min(id, C.id); - ret.ptr = std::static_pointer_cast<critter>(e_); + ret.ptr = std::static_pointer_cast<critter>(eʹ); } } } |
