diff options
author | megamage <none@none> | 2009-06-02 17:35:00 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-02 17:35:00 -0500 |
commit | 47a147721394c696a7eaec75511c891e4e03d402 (patch) | |
tree | d94158bfd31dbcc7875667a9d6c0d957d6cd44a4 /src/game/UpdateData.cpp | |
parent | 8eaa1bf8756ba2e07032f425057d2cc8eac9457b (diff) |
*Revert part of Mangos [7911] because it may causes client crash. Thanks to onkelz28.
--HG--
branch : trunk
Diffstat (limited to 'src/game/UpdateData.cpp')
-rw-r--r-- | src/game/UpdateData.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/UpdateData.cpp b/src/game/UpdateData.cpp index 34547040cda..3988a724ea5 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()); + ByteBuffer buf(m_data.size() + 10 + m_outOfRangeGUIDs.size()*8); buf << (uint32) (!m_outOfRangeGUIDs.empty() ? m_blockCount + 1 : m_blockCount); @@ -116,7 +116,8 @@ bool UpdateData::BuildPacket(WorldPacket *packet) for(std::set<uint64>::const_iterator i = m_outOfRangeGUIDs.begin(); i != m_outOfRangeGUIDs.end(); ++i) { - buf.appendPackGUID(*i); + //buf.appendPackGUID(*i); + buf << (uint8)0xFF << (uint64)*i; } } |