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)
|
void Spell::EffectQuestComplete(SpellEffectIndex eff_idx)
|
||||||
{
|
{
|
||||||
if (unitTarget->GetTypeId() != TYPEID_PLAYER)
|
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
uint32 quest_id = m_spellInfo->EffectMiscValue[eff_idx];
|
uint32 quest_id = m_spellInfo->EffectMiscValue[eff_idx];
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10938"
|
#define REVISION_NR "10939"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue