mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Crash fix for teleport action (#1245)
* - Crash fix for teleport action * - Revert logic
This commit is contained in:
@@ -75,7 +75,7 @@ bool TeleportAction::Execute(Event event)
|
|||||||
|
|
||||||
uint32 spellId = goInfo->spellcaster.spellId;
|
uint32 spellId = goInfo->spellcaster.spellId;
|
||||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId);
|
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId);
|
||||||
if (!spellInfo->HasEffect(SPELL_EFFECT_TELEPORT_UNITS))
|
if (!spellInfo || !spellInfo->HasEffect(SPELL_EFFECT_TELEPORT_UNITS))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
std::ostringstream out;
|
std::ostringstream out;
|
||||||
|
|||||||
Reference in New Issue
Block a user