From ec6416e387912ed72196ae4a14e39384aebda4cd Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 7 May 2020 07:55:20 -0400 Subject: [PATCH] CScriptBeam: Brace statements where applicable Makes the code consistent. --- Runtime/World/CScriptBeam.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Runtime/World/CScriptBeam.cpp b/Runtime/World/CScriptBeam.cpp index 05fd4d5ed..6e7e0320b 100644 --- a/Runtime/World/CScriptBeam.cpp +++ b/Runtime/World/CScriptBeam.cpp @@ -22,10 +22,12 @@ void CScriptBeam::Accept(IVisitor& visitor) { visitor.Visit(this); } void CScriptBeam::Think(float dt, CStateManager& mgr) { if (CPlasmaProjectile* proj = static_cast(mgr.ObjectById(x154_projectileId))) { - if (proj->GetActive()) + if (proj->GetActive()) { proj->UpdateFx(x34_transform, dt, mgr); - } else + } + } else { x154_projectileId = kInvalidUniqueId; + } } void CScriptBeam::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& mgr) {