diff options
author | QAston <none@none> | 2009-06-06 08:32:14 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-06-06 08:32:14 +0200 |
commit | c99b74151727a081423c60d3f42f1bd6caf4cc7e (patch) | |
tree | 61d45f78cdd770e10a81c32a7f938e725b72d78d /src/game/UpdateData.cpp | |
parent | 8bc46785de9950218f791f9eb6efc598d1a97d29 (diff) | |
parent | 39548d6822ce2a8cea49e4467f8329335aa0d85d (diff) |
*Merge.
--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); } } |