All pastes #930053 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-06 07:01 UTC
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;