mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
fix(glue): look up records by index in CCharacterCreation::CalcClasses
This commit is contained in:
parent
d2313c96ff
commit
897d4cce1d
@ -19,7 +19,7 @@ void CCharacterCreation::CalcClasses(int32_t raceID) {
|
||||
uint32_t classCount = 0;
|
||||
|
||||
for (int32_t i = 0; i < g_charBaseInfoDB.GetNumRecords(); i++) {
|
||||
auto infoRec = g_charBaseInfoDB.GetRecord(i);
|
||||
auto infoRec = g_charBaseInfoDB.GetRecordByIndex(i);
|
||||
|
||||
if (infoRec->m_raceID == raceID) {
|
||||
classCount++;
|
||||
@ -31,7 +31,7 @@ void CCharacterCreation::CalcClasses(int32_t raceID) {
|
||||
uint32_t classIndex = 0;
|
||||
|
||||
for (int32_t i = 0; i < g_charBaseInfoDB.GetNumRecords(); i++) {
|
||||
auto infoRec = g_charBaseInfoDB.GetRecord(i);
|
||||
auto infoRec = g_charBaseInfoDB.GetRecordByIndex(i);
|
||||
|
||||
if (infoRec->m_raceID != raceID) {
|
||||
continue;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user