summaryrefslogtreecommitdiffhomepage
path: root/src/world.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp6
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ʹ);
}
}
}