From 2ea8d5c3efd562f314d4bafc115dc9ccdc4a595d Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 9 Feb 2024 09:38:08 -0500 Subject: [PATCH] Style fixes --- LEGO1/lego/legoomni/src/police/police.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LEGO1/lego/legoomni/src/police/police.cpp b/LEGO1/lego/legoomni/src/police/police.cpp index 82491ecb..88ee2bc0 100644 --- a/LEGO1/lego/legoomni/src/police/police.cpp +++ b/LEGO1/lego/legoomni/src/police/police.cpp @@ -104,14 +104,16 @@ MxLong Police::HandleNotification11(MxNotificationParam& p_param) MxLong Police::HandleEndAction(MxEndActionNotificationParam& p_param) { MxDSAction* action = p_param.GetAction(); - MxLong result = m_radio.Notify(p_param); - if (result == 0 && m_atom == action->GetAtomId()) { + + if (m_radio.Notify(p_param) == 0 && m_atom == action->GetAtomId()) { if (m_policeState->GetUnknown0x0c() == 1) { m_policeState->SetUnknown0x0c(0); return 1; } + return 0; } + return 0; }