From 6c1ee01f26b1ab1589e8b0bcb76ff78711fbaf08 Mon Sep 17 00:00:00 2001 From: mostlikely4r Date: Mon, 23 Dec 2024 21:56:54 +0100 Subject: [PATCH] Internal: tbc build fix --- playerbot/strategy/actions/LfgActions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playerbot/strategy/actions/LfgActions.cpp b/playerbot/strategy/actions/LfgActions.cpp index f62ace64..094bc302 100644 --- a/playerbot/strategy/actions/LfgActions.cpp +++ b/playerbot/strategy/actions/LfgActions.cpp @@ -382,9 +382,9 @@ bool LfgJoinAction::JoinLFG() if (target && group && !group->IsFull()) { // if moving to boss - if (target->getDestination() && target->getDestination()->getName() == "BossTravelDestination") + if (target->GetDestination() && typeid(*target->GetDestination()) == typeid(BossTravelDestination)) { - WorldPosition* location = target->getPosition(); + WorldPosition* location = target->GetPosition(); uint32 targetAreaFlag = GetAreaFlagByMapId(location->mapid); if (targetAreaFlag) {