mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[10064] Fixed recently show up crash in Unit::StopMoving.
This commit is contained in:
parent
5b15cd5dd2
commit
0304448b85
3 changed files with 9 additions and 2 deletions
|
|
@ -12777,6 +12777,10 @@ void Unit::StopMoving()
|
|||
{
|
||||
clearUnitState(UNIT_STAT_MOVING);
|
||||
|
||||
// not need send any packets if not in world
|
||||
if (!IsInWorld())
|
||||
return;
|
||||
|
||||
// send explicit stop packet
|
||||
// player expected for correct work SPLINEFLAG_WALKMODE
|
||||
SendMonsterMove(GetPositionX(), GetPositionY(), GetPositionZ(), SPLINETYPE_NORMAL, GetTypeId() == TYPEID_PLAYER ? SPLINEFLAG_WALKMODE : SPLINEFLAG_NONE, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue