fix(Scripts/Midsummer): Resolve Ribbon Pole crash. (#19108)

* Init.

* Add todo.

For you, Nyeriah. 😛
This commit is contained in:
Benjamin Jackson
2024-06-20 21:06:49 -04:00
committed by GitHub
parent 48c141895a
commit c3a2b83eba

View File

@@ -709,7 +709,8 @@ struct npc_midsummer_ribbon_pole_target : public ScriptedAI
// remove non-dancing players from list
std::erase_if(_dancerList, [](Player* dancer)
{
return !dancer->HasAura(SPELL_RIBBON_POLE_PERIODIC_VISUAL);
if (dancer) /// @todo: replace with GUID storage rather than Player object
return !dancer->HasAura(SPELL_RIBBON_POLE_PERIODIC_VISUAL);
});
}