void Cleanup(Creature* infernal, InfernalPoint *point) { for (GuidVector::iterator itr = infernals.begin(); itr!= infernals.end(); ++itr) { if (*itr == infernal->GetGUID()) { infernals.erase(itr); break; } } positions.push_back(point); }
void SummonedCreatureJustDied(Creature* summoned) override { m_skeletons.erase(std::remove(m_skeletons.begin(), m_skeletons.end(), summoned->GetObjectGuid()), m_skeletons.end()); }