[7929] Some fixes and optimizations for work with packet guids.
commitf3d6831587079f4a5b4284d0aacdd46aa12a7e51
authorVladimirMangos <vladimir@getmangos.com>
Sun, 31 May 2009 18:16:18 +0000 (31 22:16 +0400)
committerVladimirMangos <vladimir@getmangos.com>
Sun, 31 May 2009 18:18:48 +0000 (31 22:18 +0400)
tree45716f4e992e4ecacd2e02dd6c5196ce6968cc19
parentfec0b617a596bc6e3eb83dad8f2d0a09a88739f2
[7929] Some fixes and optimizations for work with packet guids.

* Allocate only minimal required buffer size for object packet guid cache, avoid it realocation.
* At adding aboyher buffer content copy only until wpos (really writed to buffer data)
* In appendPackGUID check buffer size before data write.
src/game/Object.cpp
src/game/SpellAuras.cpp
src/shared/ByteBuffer.h
src/shared/revision_nr.h