diff options
author | megamage <none@none> | 2009-06-05 17:44:27 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-05 17:44:27 -0500 |
commit | 3e2fd1a380309ddaee129ebd210d52676678d511 (patch) | |
tree | 070615bb9498f9d7b55680160cce78bfd31b6b0f /src/game/UpdateData.cpp | |
parent | 47a147721394c696a7eaec75511c891e4e03d402 (diff) |
Backed out changeset: d111c6daf588
--HG--
branch : trunk
Diffstat (limited to 'src/game/UpdateData.cpp')
-rw-r--r-- | src/game/UpdateData.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/UpdateData.cpp b/src/game/UpdateData.cpp index 3988a724ea5..34547040cda 100644 --- a/src/game/UpdateData.cpp +++ b/src/game/UpdateData.cpp @@ -105,7 +105,7 @@ void UpdateData::Compress(void* dst, uint32 *dst_size, void* src, int src_size) bool UpdateData::BuildPacket(WorldPacket *packet) { - ByteBuffer buf(m_data.size() + 10 + m_outOfRangeGUIDs.size()*8); + ByteBuffer buf(m_data.size()); buf << (uint32) (!m_outOfRangeGUIDs.empty() ? m_blockCount + 1 : m_blockCount); @@ -116,8 +116,7 @@ bool UpdateData::BuildPacket(WorldPacket *packet) for(std::set<uint64>::const_iterator i = m_outOfRangeGUIDs.begin(); i != m_outOfRangeGUIDs.end(); ++i) { - //buf.appendPackGUID(*i); - buf << (uint8)0xFF << (uint64)*i; + buf.appendPackGUID(*i); } } |