From fd27efcc22e3d93d3eff52b21e5de05527fcbf79 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 28 Dec 2024 10:00:53 -0700 Subject: [PATCH] Match `LegoCarBuild::FUN_10024c20` (#1296) --- LEGO1/lego/legoomni/src/build/legocarbuild.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/LEGO1/lego/legoomni/src/build/legocarbuild.cpp b/LEGO1/lego/legoomni/src/build/legocarbuild.cpp index 69d2e8a0..ce45ab75 100644 --- a/LEGO1/lego/legoomni/src/build/legocarbuild.cpp +++ b/LEGO1/lego/legoomni/src/build/legocarbuild.cpp @@ -1203,7 +1203,7 @@ undefined4 LegoCarBuild::FUN_10024c20(LegoEventNotificationParam* p_param) assert(destWorld); m_buildState->m_animationState = LegoVehicleBuildState::e_exiting; - if (m_unk0x258->AllPartsPlaced()) { + if (!m_unk0x258->AllPartsPlaced()) { FUN_100243a0(); } else { @@ -1211,8 +1211,7 @@ undefined4 LegoCarBuild::FUN_10024c20(LegoEventNotificationParam* p_param) } } else { - MxNotificationParam param; - NotificationManager()->Send(this, param); + NotificationManager()->Send(this, MxNotificationParam()); } break; case 2: @@ -1239,9 +1238,8 @@ undefined4 LegoCarBuild::FUN_10024c20(LegoEventNotificationParam* p_param) FUN_10024ef0(); } else { - MxNotificationParam p; // In BETA10, NotificationManager->Send() also takes __FILE__ and __LINE__ arguments - NotificationManager()->Send(this, p); + NotificationManager()->Send(this, MxNotificationParam()); } break; }