From beb7884b54d4652e888cfad4da39942febb88d12 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 7 May 2020 13:05:21 -0400 Subject: [PATCH] CScriptMemoryRelay: Brace conditionals where applicable --- Runtime/World/CScriptMemoryRelay.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Runtime/World/CScriptMemoryRelay.cpp b/Runtime/World/CScriptMemoryRelay.cpp index e4df71983..ff706c7e9 100644 --- a/Runtime/World/CScriptMemoryRelay.cpp +++ b/Runtime/World/CScriptMemoryRelay.cpp @@ -17,16 +17,18 @@ CScriptMemoryRelay::CScriptMemoryRelay(TUniqueId uid, std::string_view name, con void CScriptMemoryRelay::Accept(IVisitor& visitor) { visitor.Visit(this); } void CScriptMemoryRelay::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) { - if (x34_26_ignoreMessages) + if (x34_26_ignoreMessages) { return; + } if (msg == EScriptObjectMessage::Deactivate) { stateMgr.GetRelayTracker()->RemoveRelay(xc_editorId); return; } else if (msg == EScriptObjectMessage::Activate) { stateMgr.GetRelayTracker()->AddRelay(xc_editorId); - if (!x34_25_skipSendActive) + if (!x34_25_skipSendActive) { SendScriptMsgs(EScriptObjectState::Active, stateMgr, EScriptObjectMessage::None); + } return; }