mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Movement: attempt to fix Linux build
This commit is contained in:
@@ -106,7 +106,8 @@ bool TargetedMovementGenerator<T, D>::DoUpdate(T* owner, uint32 diff)
|
||||
// the owner needs to reposition itself when being too close to its victim
|
||||
if (Creature* me = owner->ToCreature())
|
||||
{
|
||||
if (GetMovementGeneratorType() == CHASE_MOTION_TYPE && me->IsAllowedToRepostionAgainst(GetTarget()))
|
||||
MovementGeneratorType type = GetMovementGeneratorType();
|
||||
if (type == CHASE_MOTION_TYPE && me->IsAllowedToRepostionAgainst(GetTarget()))
|
||||
{
|
||||
if (me->GetCombatReach() > me->GetPosition().GetExactDist(GetTarget()->GetPosition()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user