Implement/match LegoOmni::FindROI and related (#570)

* Implement/match LegoOmni::FindROI and related

* Add missing file
This commit is contained in:
Christian Semmler
2024-02-16 19:34:30 -05:00
committed by GitHub
parent 5b06054375
commit c67f613b8d
13 changed files with 61 additions and 23 deletions

View File

@@ -448,7 +448,7 @@ MxCore* LegoWorld::Find(const char* p_class, const char* p_name)
}
LegoROI* roi = entity->GetROI();
if (roi && !strcmpi(roi->GetUnknown0xe4(), p_name)) {
if (roi && !strcmpi(roi->GetName(), p_name)) {
return entity;
}
}