This commit is contained in:
Christian Semmler 2024-03-02 14:19:30 -05:00
parent b2b588bee8
commit c4ca8eaa3e
3 changed files with 4 additions and 4 deletions

View File

@ -829,10 +829,10 @@ void LegoOmni::DeleteObject(MxDSAction& p_dsAction)
LegoROI* LegoOmni::FindROI(const char* p_name)
{
ViewManager* viewManager = GetVideoManager()->Get3DManager()->GetLego3DView()->GetViewManager();
CompoundObject& rois = viewManager->GetROIs();
const CompoundObject& rois = viewManager->GetROIs();
if (p_name != NULL && *p_name != '\0' && rois.size() > 0) {
for (CompoundObject::iterator it = rois.begin(); it != rois.end(); it++) {
for (CompoundObject::const_iterator it = rois.begin(); it != rois.end(); it++) {
LegoROI* roi = (LegoROI*) *it;
const char* name = roi->GetName();

View File

@ -218,7 +218,7 @@ void LegoAnimPresenter::FUN_100695c0()
m_unk0x70 = new LegoROIList();
if (m_unk0x70) {
CompoundObject& rois = VideoManager()->Get3DManager()->GetLego3DView()->GetViewManager()->GetROIs();
const CompoundObject& rois = VideoManager()->Get3DManager()->GetLego3DView()->GetViewManager()->GetROIs();
LegoU32 numActors = m_anim->GetNumActors();
for (LegoU32 i = 0; i < numActors; i++) {

View File

@ -31,7 +31,7 @@ class ViewManager {
// SYNTHETIC: LEGO1 0x100a6000
// ViewManager::`scalar deleting destructor'
inline CompoundObject& GetROIs() { return rois; }
inline const CompoundObject& GetROIs() { return rois; }
inline void Add(ViewROI* p_roi) { rois.push_back(p_roi); }