CScriptAreaAttributes: Brace statements where applicable

Makes the code consistent.
This commit is contained in:
Lioncash 2020-05-07 07:59:18 -04:00
parent 0bb3fcae3b
commit bdcf6dee66
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}