mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Crash fix for teleport action (#1245)
* - Crash fix for teleport action * - Revert logic
This commit is contained in:
parent
ca4897360f
commit
96d9b346c1
@ -75,7 +75,7 @@ bool TeleportAction::Execute(Event event)
|
||||
|
||||
uint32 spellId = goInfo->spellcaster.spellId;
|
||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId);
|
||||
if (!spellInfo->HasEffect(SPELL_EFFECT_TELEPORT_UNITS))
|
||||
if (!spellInfo || !spellInfo->HasEffect(SPELL_EFFECT_TELEPORT_UNITS))
|
||||
continue;
|
||||
|
||||
std::ostringstream out;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user