From 043c30e4d536a3e117ddf043b916b93a06dfac07 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Thu, 4 Jan 2024 13:37:16 -0500 Subject: [PATCH] WIP --- LEGO1/mxdirect3d.cpp | 3 +-- LEGO1/mxdirect3d.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/LEGO1/mxdirect3d.cpp b/LEGO1/mxdirect3d.cpp index e39bb424..722a38aa 100644 --- a/LEGO1/mxdirect3d.cpp +++ b/LEGO1/mxdirect3d.cpp @@ -135,10 +135,9 @@ BOOL MxDirect3D::SetDevice(MxDeviceEnumerate& p_deviceEnumerator, MxDriver* p_dr } MxDeviceModeFinder* deviceModeFinder = new MxDeviceModeFinder; - list& deviceList = p_deviceEnumerator.GetDeviceList(); MxS32 i = 0; - for (list::iterator it = deviceList.begin(); it != deviceList.end(); it++) { + for (list::iterator it = p_deviceEnumerator.m_list.begin(); it != p_deviceEnumerator.m_list.end(); it++) { MxDriver& driver = *it; if (&driver == p_driver) { diff --git a/LEGO1/mxdirect3d.h b/LEGO1/mxdirect3d.h index 85356947..db31eb70 100644 --- a/LEGO1/mxdirect3d.h +++ b/LEGO1/mxdirect3d.h @@ -209,7 +209,7 @@ class MxDeviceEnumerate { static undefined4 FUN_1009d1a0(); static undefined4 FUN_1009d1e0(); - inline list& GetDeviceList() { return m_list; } + friend class MxDirect3D; private: list m_list; // 0x04