From c0965039d18b9288cbe05f7abe811d3c5ce697d1 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 29 Nov 2024 14:45:57 -0700 Subject: [PATCH] Improve Isle::Enable and LegoAct2::Enable matches (#1179) --- LEGO1/lego/legoomni/src/worlds/isle.cpp | 2 +- LEGO1/lego/legoomni/src/worlds/legoact2.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LEGO1/lego/legoomni/src/worlds/isle.cpp b/LEGO1/lego/legoomni/src/worlds/isle.cpp index 190ad2ef..a01aece9 100644 --- a/LEGO1/lego/legoomni/src/worlds/isle.cpp +++ b/LEGO1/lego/legoomni/src/worlds/isle.cpp @@ -532,7 +532,7 @@ MxLong Isle::HandlePathStruct(LegoPathStructNotificationParam& p_param) // FUNCTION: BETA10 0x10034158 void Isle::Enable(MxBool p_enable) { - if (m_set0xd0.empty() == p_enable) { + if ((MxBool) m_set0xd0.empty() == p_enable) { return; } diff --git a/LEGO1/lego/legoomni/src/worlds/legoact2.cpp b/LEGO1/lego/legoomni/src/worlds/legoact2.cpp index ac120934..7f5d967c 100644 --- a/LEGO1/lego/legoomni/src/worlds/legoact2.cpp +++ b/LEGO1/lego/legoomni/src/worlds/legoact2.cpp @@ -352,7 +352,7 @@ void LegoAct2::ReadyWorld() // FUNCTION: BETA10 0x1003bb2d void LegoAct2::Enable(MxBool p_enable) { - if (m_set0xd0.empty() == p_enable) { + if ((MxBool) m_set0xd0.empty() == p_enable) { return; }