mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
fix(Scripts/Commands): Fix crash in unstuck command (#21846)
This commit is contained in:
@@ -1456,14 +1456,10 @@ public:
|
|||||||
{
|
{
|
||||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(7355);
|
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(7355);
|
||||||
if (!spellInfo)
|
if (!spellInfo)
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
if (Player* caster = handler->GetSession()->GetPlayer())
|
if (player)
|
||||||
{
|
Spell::SendCastResult(player, spellInfo, 0, SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW);
|
||||||
Spell::SendCastResult(caster, spellInfo, 0, SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW);
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user