From 36923ee2defd0848c5a530721114d4e553872305 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Thu, 10 Sep 2015 17:14:21 +0200 Subject: [PATCH] fix loop removing players from world --- src/world/World.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/world/World.cpp b/src/world/World.cpp index 8b43657..3ff7da3 100644 --- a/src/world/World.cpp +++ b/src/world/World.cpp @@ -279,6 +279,7 @@ World::EntityHandle World::RemoveEntity(EntityHandle &eh) { if (player->entity == &*eh) { chunks.UnregisterIndex(*player->chunks); player = players.erase(player); + end = players.end(); } else { ++player; } -- 2.39.2