diff options
| author | ariel- <ariel-@users.noreply.github.com> | 2018-01-22 01:54:15 -0300 |
|---|---|---|
| committer | ariel- <ariel-@users.noreply.github.com> | 2018-01-22 02:43:34 -0300 |
| commit | 73cc613dc86d7d72d78f22affe2faba6786bccc5 (patch) | |
| tree | 164393f96fe4a7498e80b9b5a99c0103003e668c /src/server/game/AI/SmartScripts | |
| parent | 4402f71eb7d17e5cf6b768a452baa00555eff7e4 (diff) | |
Core/Formations: update codestyle and fix crash
Closes #21288
Diffstat (limited to 'src/server/game/AI/SmartScripts')
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.cpp | 4 |
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 2b815b677a3..d1bc18ba21f 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -545,14 +545,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 } |
