diff --git a/LEGO1/mxomni.cpp b/LEGO1/mxomni.cpp index 9b7cedbc..9598141d 100644 --- a/LEGO1/mxomni.cpp +++ b/LEGO1/mxomni.cpp @@ -1,7 +1,7 @@ #include "mxomni.h" // 0x101015b0 -MxOmni *MxOmni::m_instance = NULL; +MxOmni *MxOmni::g_instance = NULL; // OFFSET: LEGO1 0x100aef10 MxOmni::MxOmni() @@ -36,23 +36,23 @@ void MxOmni::Init() // OFFSET: LEGO1 0x100b0690 void MxOmni::DestroyInstance() { - if (m_instance != NULL) + if (g_instance != NULL) { - delete m_instance; - m_instance = NULL; + delete g_instance; + g_instance = NULL; } } // OFFSET: LEGO1 0x100b0680 MxOmni *MxOmni::GetInstance() { - return m_instance; + return g_instance; } // OFFSET: LEGO1 0x100af0b0 void MxOmni::SetInstance(MxOmni *instance) { - m_instance = instance; + g_instance = instance; } // OFFSET: LEGO1 0x100af0c0 diff --git a/LEGO1/mxomni.h b/LEGO1/mxomni.h index e79e8d17..6a0d3ef8 100644 --- a/LEGO1/mxomni.h +++ b/LEGO1/mxomni.h @@ -47,7 +47,7 @@ class MxOmni : public MxCore MxMusicManager* GetMusicManager() const { return this->m_musicManager; } MxEventManager* GetEventManager() const { return this->m_eventManager; } protected: - static MxOmni* m_instance; + static MxOmni* g_instance; MxString m_mediaPath; // 0x8 HWND *m_windowHandle; // 0x18;