diff options
-rw-r--r-- | src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel_teleport.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel_teleport.cpp b/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel_teleport.cpp index 8b8379d07b0..39a208351fc 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel_teleport.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/icecrown_citadel_teleport.cpp @@ -56,7 +56,9 @@ class icecrown_citadel_teleport : public GameObjectScript ClearGossipMenuFor(player); CloseGossipMenuFor(player); - SpellInfo const* spell = sSpellMgr->GetSpellInfo(TeleportSpells[gossipListId]); + + uint32 const teleportSpell = TeleportSpells[gossipListId]; + SpellInfo const* spell = sSpellMgr->GetSpellInfo(teleportSpell); if (!spell) return false; @@ -66,7 +68,7 @@ class icecrown_citadel_teleport : public GameObjectScript return true; } - player->CastSpell(player, spell->Id, true); + player->CastSpell(player, teleportSpell, true); return true; } }; |