[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.
This commit is contained in:
VladimirMangos 2009-05-31 22:16:18 +04:00
parent 0bfcc44bb8
commit fb45529eff
4 changed files with 8 additions and 6 deletions

View file

@ -3414,7 +3414,7 @@ void Aura::HandleAuraModStun(bool apply, bool Real)
else
{
m_target->SetUnitMovementFlags(0); // Clear movement flags
m_target->SetStandState(UNIT_STAND_STATE_STAND);
m_target->SetStandState(UNIT_STAND_STATE_STAND);// in 1.5 client
}
WorldPacket data(SMSG_FORCE_MOVE_ROOT, 8);