From bdcf6dee66e39c591312e2dbe113d023cc7b14f5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 7 May 2020 07:59:18 -0400 Subject: [PATCH] CScriptAreaAttributes: Brace statements where applicable Makes the code consistent. --- Runtime/World/CScriptAreaAttributes.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Runtime/World/CScriptAreaAttributes.cpp b/Runtime/World/CScriptAreaAttributes.cpp index 9d5e43fca..1e9cab788 100644 --- a/Runtime/World/CScriptAreaAttributes.cpp +++ b/Runtime/World/CScriptAreaAttributes.cpp @@ -25,8 +25,9 @@ void CScriptAreaAttributes::Accept(IVisitor& visitor) { visitor.Visit(this); } void CScriptAreaAttributes::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) { CEntity::AcceptScriptMsg(msg, objId, stateMgr); - if (x4_areaId == kInvalidAreaId) + if (x4_areaId == kInvalidAreaId) { return; + } if (msg == EScriptObjectMessage::InitializedInArea) { CGameArea* area = stateMgr.GetWorld()->GetArea(x4_areaId); @@ -35,8 +36,9 @@ void CScriptAreaAttributes::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId } else if (msg == EScriptObjectMessage::Deleted) { CGameArea* area = stateMgr.GetWorld()->GetArea(x4_areaId); - if (!area->IsPostConstructed()) + if (!area->IsPostConstructed()) { return; + } area->SetAreaAttributes(nullptr); }