Core/Network: Optimized packet sending by removing unneccessary memory copying

This commit is contained in:
Shauren committed 2014-07-27 17:46:46 +02:00
1 parent 8a05231994
commit 6f272ea5b7
18 files changed
+162 -53

No files matched your search

+1 -1
View File
@@ -2682,7 +2682,7 @@ uint32 Map::GetPlayersCountExceptGMs() const
return count;
}
void Map::SendToPlayers(WorldPacket const* data) const
void Map::SendToPlayers(WorldPacket* data) const
{
for (MapRefManager::const_iterator itr = m_mapRefManager.begin(); itr != m_mapRefManager.end(); ++itr)
itr->GetSource()->GetSession()->SendPacket(data);