1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-06-19 23:41:36 +00:00

[Server] Iterate cells where player was loaded instead all

This commit is contained in:
Koncord 2017-02-19 22:43:57 +08:00
parent 67099e437a
commit fd36ec7613

View file

@ -142,7 +142,7 @@ void CellController::removePlayer(Cell *cell, Player *player)
void CellController::deletePlayer(Player *player)
{
for_each (cells.begin(), cells.end(), [&player](Cell *cell) {
for_each (player->getCells().begin(), player->getCells().end(), [&player](Cell *cell) {
for (auto it = cell->begin(); it != cell->end(); ++it)
{
if (*it == player)