mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 22:37:05 +00:00
[9445] Possible fix often crashes in waypoint movegen.
Thanks to DrKLO for research source of problem!
This commit is contained in:
parent
24f2d4658f
commit
87b08b4fa1
8 changed files with 35 additions and 8 deletions
|
|
@ -21,3 +21,10 @@
|
|||
MovementGenerator::~MovementGenerator()
|
||||
{
|
||||
}
|
||||
|
||||
bool MovementGenerator::IsActive( Unit& u )
|
||||
{
|
||||
// When movement generator list modified from Update movegen object erase delayed,
|
||||
// so pointer still valid and be used for check
|
||||
return !u.GetMotionMaster()->empty() && u.GetMotionMaster()->top() == this;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue