rendered paste body
for(int row = 0; row < spell.rows(); ++row)
{
int spellid = spell.getValue(row, Dbc::Spell::TaughtSpell);
if(spellid == 0)
spellid = spell.getValue(row, Dbc::Generic::Id);
hash_map<int, int>::const_iterator line(
spellidtoabilityid.find(spellid));
int lineid;
if(line == spellidtoabilityid.end())
{
lineid = spell.getValue(row, Dbc::Spell::LineId);
if(lineid == 0)
{
continue;
}
}
else
lineid = line->second;
key.name =
spell.getString(row, WowLocaleSpellNameColumns[loc]);
key.rank =
spell.getString(row, WowLocaleSpellRankColumns[loc]);
key.line = lineid;