From 79a4918170ec08ba41416ae9257e33ee1b2ef10a Mon Sep 17 00:00:00 2001 From: Joshua Peisach Date: Sun, 14 Jan 2024 12:44:29 -0500 Subject: [PATCH] ElevatorBottom destructor --- LEGO1/lego/legoomni/src/infocenter/elevatorbottom.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/LEGO1/lego/legoomni/src/infocenter/elevatorbottom.cpp b/LEGO1/lego/legoomni/src/infocenter/elevatorbottom.cpp index 2b6ec2b6..1d872c75 100644 --- a/LEGO1/lego/legoomni/src/infocenter/elevatorbottom.cpp +++ b/LEGO1/lego/legoomni/src/infocenter/elevatorbottom.cpp @@ -2,6 +2,9 @@ DECOMP_SIZE_ASSERT(ElevatorBottom, 0xfc) +#include "legocontrolmanager.h" +#include "legoinputmanager.h" +#include "legoomni.h" #include "mxnotificationmanager.h" #include "mxomni.h" @@ -12,10 +15,14 @@ ElevatorBottom::ElevatorBottom() this->m_unk0xf8 = 0; } -// STUB: LEGO1 0x10018060 +// FUNCTION: LEGO1 0x10018060 ElevatorBottom::~ElevatorBottom() { - // TODO + if (InputManager()->m_world == this) { + InputManager()->ClearWorld(); + } + ControlManager()->Unregister(this); + NotificationManager()->Unregister(this); } // STUB: LEGO1 0x10018150