feat(component): implement CCharacterSelection::ClearCharacterModel

This commit is contained in:
fallenoak committed 2025-10-28 10:13:30 -05:00
1 parent e85cdd4896
commit de95191127
1 file changed
+12 -1
+12 -1
View File
@@ -46,7 +46,18 @@ void CCharacterSelection::ClearCharacterList() {
}
void CCharacterSelection::ClearCharacterModel() {
// TODO
if (!CCharacterSelection::s_modelFrame) {
return;
}
auto model = CCharacterSelection::s_modelFrame->m_model;
if (model) {
model->DetachAllChildrenById(0);
// Might be an inlined function (perhaps ClearPetModel)
model->DetachAllChildrenById(1);
}
}
void CCharacterSelection::EnumerateCharactersCallback(const CHARACTER_INFO& info, void* param) {