diff options
author | Golrag <golrag.jeremy@gmail.com> | 2015-02-16 19:18:45 +0100 |
---|---|---|
committer | Golrag <golrag.jeremy@gmail.com> | 2015-02-16 20:33:23 +0100 |
commit | b7a65ce9efcc5bb96ce11e63929e322885f7a43d (patch) | |
tree | e6ed0b25f1c2a50d78b9a7d35e83e04adcaf7ce5 /src/server/game/Battlegrounds/Arena.cpp | |
parent | 17361275c520a94db9168e486a47cf368147dd58 (diff) |
Core/Opcodes: SMSG_INIT_WORLD_STATES
Diffstat (limited to 'src/server/game/Battlegrounds/Arena.cpp')
-rw-r--r-- | src/server/game/Battlegrounds/Arena.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Battlegrounds/Arena.cpp b/src/server/game/Battlegrounds/Arena.cpp index d2543b6ce8a..6348359511b 100644 --- a/src/server/game/Battlegrounds/Arena.cpp +++ b/src/server/game/Battlegrounds/Arena.cpp @@ -71,10 +71,10 @@ void Arena::RemovePlayer(Player* /*player*/, ObjectGuid /*guid*/, uint32 /*team* CheckWinConditions(); } -void Arena::FillInitialWorldStates(WorldPacket& data) +void Arena::FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates& packet) { - data << uint32(ARENA_WORLD_STATE_ALIVE_PLAYERS_GREEN) << uint32(GetAlivePlayersCountByTeam(HORDE)); - data << uint32(ARENA_WORLD_STATE_ALIVE_PLAYERS_GOLD) << uint32(GetAlivePlayersCountByTeam(ALLIANCE)); + packet.Worldstates.emplace_back(uint32(ARENA_WORLD_STATE_ALIVE_PLAYERS_GREEN), int32(GetAlivePlayersCountByTeam(HORDE))); + packet.Worldstates.emplace_back(uint32(ARENA_WORLD_STATE_ALIVE_PLAYERS_GOLD), int32(GetAlivePlayersCountByTeam(ALLIANCE))); } void Arena::UpdateArenaWorldState() |