Core/Calendar: Fix crash when deleting an event on the calendar. Should also stop the error message from appearing.

Thanks elecyb
Closes #6570

- Corrected some code from 66d42b4f29
This commit is contained in:
kaelima
2012-05-23 16:37:22 +02:00
parent 419d537bc8
commit dbe8034ec2
2 changed files with 13 additions and 15 deletions
+2 -2
View File
@@ -1733,8 +1733,8 @@ void WorldSession::HandleUpdateMissileTrajectory(WorldPacket& recvPacket)
recvPacket >> moveStop;
Unit* caster = ObjectAccessor::GetUnit(*_player, guid);
Spell* spell = caster ? caster->GetCurrentSpell(CURRENT_CHANNELED_SPELL) : NULL;
if (!spell || spell->m_spellInfo->Id != spellId || !spell->m_targets.HasDst())
Spell* spell = caster ? caster->GetCurrentSpell(CURRENT_GENERIC_SPELL) : NULL;
if (!spell || spell->m_spellInfo->Id != spellId || !spell->m_targets.HasDst() || !spell->m_targets.HasSrc())
{
recvPacket.rfinish();
return;