From 3a218343825ae760118e9cc0981bb4212b51c540 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Thu, 19 Oct 2023 13:07:05 -0400 Subject: [PATCH] Rename virtual function to fix override (#222) --- LEGO1/legostate.cpp | 2 +- LEGO1/legostate.h | 2 +- LEGO1/scorestate.cpp | 2 +- LEGO1/scorestate.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LEGO1/legostate.cpp b/LEGO1/legostate.cpp index 4b808624..9342f4f2 100644 --- a/LEGO1/legostate.cpp +++ b/LEGO1/legostate.cpp @@ -13,7 +13,7 @@ MxBool LegoState::VTable0x14() { } // OFFSET: LEGO1 0x10005fa0 -MxBool LegoState::VTable0x18() { +MxBool LegoState::SetFlag() { return FALSE; } diff --git a/LEGO1/legostate.h b/LEGO1/legostate.h index 457e7964..67d781d1 100644 --- a/LEGO1/legostate.h +++ b/LEGO1/legostate.h @@ -27,7 +27,7 @@ public: } virtual MxBool VTable0x14(); // vtable+0x14 - virtual MxBool VTable0x18(); // vtable+0x18 + virtual MxBool SetFlag(); // vtable+0x18 virtual MxResult VTable0x1C(LegoFileStream *p_legoFileStream); // vtable+0x1C }; diff --git a/LEGO1/scorestate.cpp b/LEGO1/scorestate.cpp index 54f6e774..edfd372b 100644 --- a/LEGO1/scorestate.cpp +++ b/LEGO1/scorestate.cpp @@ -8,7 +8,7 @@ MxBool ScoreState::VTable0x14() { } // OFFSET: LEGO1 0x1000de30 -MxBool ScoreState::SetScoreCubeTutorialFlag() +MxBool ScoreState::SetFlag() { m_playCubeTutorial = TRUE; return TRUE; diff --git a/LEGO1/scorestate.h b/LEGO1/scorestate.h index 9dfa445f..ac977d1f 100644 --- a/LEGO1/scorestate.h +++ b/LEGO1/scorestate.h @@ -22,7 +22,7 @@ public: }; virtual MxBool VTable0x14() override; // vtable+0x14 - virtual MxBool SetScoreCubeTutorialFlag() override; // vtable+0x18 + virtual MxBool SetFlag() override; // vtable+0x18 private: MxBool m_playCubeTutorial;