Minor improvement

This commit is contained in:
Christian Semmler 2024-02-11 08:58:07 -05:00
parent 4bbbc7fb20
commit 052b58971b
2 changed files with 5 additions and 5 deletions

View File

@ -68,7 +68,7 @@ class LegoWorld : public LegoEntity {
inline void SetUnknown0xec(undefined4 p_unk0xec) { m_unk0xec = p_unk0xec; }
inline undefined4 GetUnknown0xec() { return m_unk0xec; }
inline MxCoreSet& GetUnknown0xd0() { return m_set0xd0; }
inline list<AutoROI*>* GetUnknownList0xe0() { return &m_list0xe0; }
inline list<AutoROI*>& GetUnknownList0xe0() { return m_list0xe0; }
MxBool PresentersPending();
void Remove(MxCore* p_object);

View File

@ -132,12 +132,12 @@ void LegoModelPresenter::ParseExtra()
}
else if (KeyValueStringParse(output, g_dbCreate, buffer) != 0 && m_roi == NULL) {
LegoWorld* currentWorld = CurrentWorld();
for (list<AutoROI*>::iterator it = currentWorld->GetUnknownList0xe0()->begin();
it != currentWorld->GetUnknownList0xe0()->end();
it++) {
list<AutoROI*>& roiList = currentWorld->GetUnknownList0xe0();
for (list<AutoROI*>::iterator it = roiList.begin(); it != roiList.end(); it++) {
if (!strcmpi(((LegoROI*) (*it))->GetUnknown0xe4(), output)) {
m_roi = *it;
currentWorld->GetUnknownList0xe0()->erase(it);
roiList.erase(it);
m_addedToView = TRUE;
VideoManager()->Get3DManager()->GetLego3DView()->Add(*m_roi);