X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FWorld.cpp;h=3ff7da341e3e52f2d6989a2bf67969f896d51b98;hb=d4c71969df4f6b5e6b750c98268d30ca6784908b;hp=8b43657d3b58b1520e40c25019762883e6f7e5fb;hpb=13e676a6e49128ebc6c63b8dd08bef51d360e8e9;p=blank.git 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; }