mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(glue): set race index properly in CCharacterCreation::ResetCharCustomizeInfo
This commit is contained in:
parent
30db32c4d4
commit
d2313c96ff
@ -194,7 +194,16 @@ void CCharacterCreation::ResetCharCustomizeInfo() {
|
||||
|
||||
CCharacterCreation::s_raceIndex = -1;
|
||||
|
||||
// TODO race and name gen stuff
|
||||
for (int32_t i = 0; i < CCharacterCreation::s_races.Count(); i++) {
|
||||
auto raceID = CCharacterCreation::s_races[i];
|
||||
|
||||
if (CCharacterCreation::s_character->m_data.raceID == raceID) {
|
||||
CCharacterCreation::s_raceIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// TODO name gen stuff
|
||||
|
||||
CGlueLoading::StartLoad(CCharacterCreation::s_character, true);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user