forked from teamnwah/openmw-tes3coop
[Server] Iterate cells where player was loaded instead all
This commit is contained in:
parent
67099e437a
commit
fd36ec7613
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ void CellController::removePlayer(Cell *cell, Player *player)
|
||||||
|
|
||||||
void CellController::deletePlayer(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)
|
for (auto it = cell->begin(); it != cell->end(); ++it)
|
||||||
{
|
{
|
||||||
if (*it == player)
|
if (*it == player)
|
||||||
|
|
Loading…
Reference in a new issue