mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Core/Movement: fixed a crash in MotionMaster that was caused in combination with MovementInform and DoZoneInCombat
This commit is contained in:
@@ -154,7 +154,10 @@ MovementGeneratorType MotionMaster::GetCurrentMovementGeneratorType() const
|
||||
if (empty())
|
||||
return IDLE_MOTION_TYPE;
|
||||
|
||||
return top()->GetMovementGeneratorType();
|
||||
if (topOrNull())
|
||||
return top()->GetMovementGeneratorType();
|
||||
else
|
||||
return IDLE_MOTION_TYPE;
|
||||
}
|
||||
|
||||
MovementGeneratorType MotionMaster::GetMotionSlotType(MovementSlot slot) const
|
||||
|
||||
Reference in New Issue
Block a user