void MotionMaster::DirectDelete(_Ty curr) { if (isStatic(curr)) return; curr->Finalize(*_owner); delete curr; }
void MotionMaster::DirectDelete(_Ty curr) { if(isStatic(curr)) return; if(i_owner->IsInWorld()) // i_owner can have even m_cleanupDone flag! curr->Finalize(*i_owner); delete curr; }
void MotionMaster::DelayedDelete(_Ty curr) { sLog->outCrash( "Unit (Entry %u) is trying to delete its updating MG (Type %u)!", i_owner->GetEntry(), curr->GetMovementGeneratorType()); if (isStatic(curr)) return; if (!m_expList) m_expList = new ExpireList(); m_expList->push_back(curr); }
static std::vector<node_type*> execute(_Ty& entity, bool descending) { std::vector<node_type*> result; for(node_type* node = entity.parent(); node; node = node->parent()) { result.emplace_back(node); } if(descending) std::reverse(result.begin(), result.end()); return std::move(result); }
void MotionMaster::DelayedDelete(_Ty curr) { TC_LOG_FATAL("misc", "Unit (Entry %u) is trying to delete its updating Movement Generator (Type %u)!", _owner->GetEntry(), curr->GetMovementGeneratorType()); if (isStatic(curr)) return; if (!_expList) _expList = new ExpireList(); _expList->push_back(curr); }
void MotionMaster::DelayedDelete(_Ty curr) { sLog->outFatal(LOG_FILTER_GENERAL, "Unit (Entry %u) is trying to delete its updating MG (Type %u)!", _owner->GetEntry(), curr->GetMovementGeneratorType()); if (isStatic(curr)) return; if (!_expList) _expList = new ExpireList(); _expList->push_back(curr); }