fixed a crash

This commit is contained in:
hondacrx
2022-08-10 09:34:23 -04:00
parent 132185e037
commit 2371fdb343
+1 -1
View File
@@ -3037,7 +3037,7 @@ namespace Game.Spells
{
m_spellState = SpellState.Casting;
// GameObjects shouldn't cast channeled spells
m_caster.ToUnit().AddInterruptMask(m_spellInfo.ChannelInterruptFlags, m_spellInfo.ChannelInterruptFlags2);
m_caster.ToUnit()?.AddInterruptMask(m_spellInfo.ChannelInterruptFlags, m_spellInfo.ChannelInterruptFlags2);
}
}