diff options
| author | Shauren <shauren.trinity@gmail.com> | 2012-07-11 23:28:40 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2012-07-11 23:28:40 +0200 |
| commit | a2b1cf66ca00ae22bd19abd49051537179d144b3 (patch) | |
| tree | 6b4a26f8972869cb0df1099abb43b7eb857b351b /src/server/game/Reputation/ReputationMgr.cpp | |
| parent | 947dbcbabc004727b69d7fcae2db320fcc776c6b (diff) | |
Core/PacketIO: Update structures of many packets sent during the login process
Diffstat (limited to 'src/server/game/Reputation/ReputationMgr.cpp')
| -rwxr-xr-x | src/server/game/Reputation/ReputationMgr.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/server/game/Reputation/ReputationMgr.cpp b/src/server/game/Reputation/ReputationMgr.cpp index 0ae16d72758..78f2e44c29a 100755 --- a/src/server/game/Reputation/ReputationMgr.cpp +++ b/src/server/game/Reputation/ReputationMgr.cpp @@ -197,23 +197,23 @@ void ReputationMgr::SendState(FactionState const* faction) void ReputationMgr::SendInitialReputations() { - WorldPacket data(SMSG_INITIALIZE_FACTIONS, (4+128*5)); - data << uint32 (0x00000080); + WorldPacket data(SMSG_INITIALIZE_FACTIONS, (4+256*5)); + data << uint32(256); // count RepListID a = 0; for (FactionStateList::iterator itr = _factions.begin(); itr != _factions.end(); ++itr) { // fill in absent fields - for (; a != itr->first; a++) + for (; a != itr->first; ++a) { - data << uint8 (0x00); - data << uint32 (0x00000000); + data << uint8(0); + data << uint32(0); } // fill in encountered data - data << uint8 (itr->second.Flags); - data << uint32 (itr->second.Standing); + data << uint8(itr->second.Flags); + data << uint32(itr->second.Standing); itr->second.needSend = false; @@ -221,7 +221,7 @@ void ReputationMgr::SendInitialReputations() } // fill in absent fields - for (; a != 128; a++) + for (; a != 256; ++a) { data << uint8 (0x00); data << uint32 (0x00000000); |
