mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
nopch fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user