[10939] Check non-unit target case for avoid crash in EffectQuestComplete.

This commit is contained in:
VladimirMangos 2010-12-30 03:19:06 +03:00
parent 0b7e78d2a7
commit afdfdf6559
2 changed files with 2 additions and 2 deletions

View file

@ -7470,7 +7470,7 @@ void Spell::EffectReputation(SpellEffectIndex eff_idx)
void Spell::EffectQuestComplete(SpellEffectIndex eff_idx)
{
if (unitTarget->GetTypeId() != TYPEID_PLAYER)
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
uint32 quest_id = m_spellInfo->EffectMiscValue[eff_idx];

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10938"
#define REVISION_NR "10939"
#endif // __REVISION_NR_H__