Core/Network: Optimized packet sending by removing unneccessary memory copying
This commit is contained in:
1 parent
8a05231994
commit
6f272ea5b7
18 files changed
+162
-53
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user