Core/Formations: update codestyle and fix crash

Closes #21288
This commit is contained in:
ariel-
2018-01-22 01:54:15 -03:00
parent 4402f71eb7
commit 73cc613dc8
7 changed files with 206 additions and 145 deletions

View File

@@ -252,7 +252,7 @@ struct npc_cameron : public ScriptedAI
_childrenGUIDs.push_back(jose->GetGUID());
// If Formation was disbanded, remake.
if (!me->GetFormation()->isFormed())
if (!me->GetFormation()->IsFormed())
for (auto guid : _childrenGUIDs)
if (Creature* child = ObjectAccessor::GetCreature(*me, guid))
child->SearchFormation();