[Server] Use variable instead method in Player.

coverity_scan^2
Koncord 8 years ago
parent ec4d016100
commit 78f5a760f4

@ -147,7 +147,7 @@ void Player::sendToLoaded(mwmp::PlayerPacket *myPacket)
{
std::list <Player*> plList;
for (auto cell : *getCells())
for (auto cell : cells)
for (auto pl : *cell)
plList.push_back(pl);
@ -165,7 +165,7 @@ void Player::forEachLoaded(std::function<void(Player *pl, Player *other)> func)
{
std::list <Player*> plList;
for (auto cell : *getCells())
for (auto cell : cells)
for (auto pl : *cell)
plList.push_back(pl);

Loading…
Cancel
Save