mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[10939] Check non-unit target case for avoid crash in EffectQuestComplete.
This commit is contained in:
parent
0b7e78d2a7
commit
afdfdf6559
2 changed files with 2 additions and 2 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue