All pastes #523264 Raw Edit

Anonymous

public text v1 · immutable
#523264 ·published 2007-05-30 18:50 UTC
rendered paste body
Add this to DBCReader class

public DBCRecord GetRecord(int row)
        {
            return m_List[row];
        }


for each of the gtXXX.dbc, replace 

foreach (DBCRecord record in dbcRdr.Records)
            {
                m_baseSpellCritChance[record.Id] = record.GetFloat(record.Id);
            }

with this

for (int i=0;i<dbcRdr.RecordCount;i++)
{
      m_baseSpellCritChance[i] = dbcRdr.GetRecord(i).GetFloat(0);
}