nopch fix

This commit is contained in:
Treeston
2017-12-30 21:00:29 +01:00
parent d507a7e338
commit d20b11cc5b

View File

@@ -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;
}
};