aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/SmartScripts
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-01-22 01:54:15 -0300
committerShauren <shauren.trinity@gmail.com>2021-06-16 19:26:32 +0200
commit861cf261c5dfc29d6980908ec36ebe7aad68a462 (patch)
tree07114f8f4c1d972834a49319459e948324a633f9 /src/server/game/AI/SmartScripts
parent0c56ec914f5f6b55251a7a8889b61ef93d56c924 (diff)
Core/Formations: update codestyle and fix crash
Closes #21288 (cherry picked from commit 73cc613dc86d7d72d78f22affe2faba6786bccc5)
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-rw-r--r--src/server/game/AI/SmartScripts/SmartAI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp
index 5769ea307ca..a90dc7e1b6b 100644
--- a/src/server/game/AI/SmartScripts/SmartAI.cpp
+++ b/src/server/game/AI/SmartScripts/SmartAI.cpp
@@ -548,14 +548,14 @@ void SmartAI::JustReachedHome()
GetScript()->ProcessEventsFor(SMART_EVENT_REACHED_HOME);
CreatureGroup* formation = me->GetFormation();
- if (!formation || formation->getLeader() == me || !formation->isFormed())
+ if (!formation || formation->GetLeader() == me || !formation->IsFormed())
{
if (me->GetMotionMaster()->GetMotionSlotType(MOTION_SLOT_IDLE) != WAYPOINT_MOTION_TYPE && me->GetWaypointPath())
me->GetMotionMaster()->MovePath(me->GetWaypointPath(), true);
else
me->ResumeMovement();
}
- else if (formation->isFormed())
+ else if (formation->IsFormed())
me->GetMotionMaster()->MoveIdle(); // wait the order of leader
}