CScriptPlayerHint: Brace conditionals where applicable

This commit is contained in:
Lioncash 2020-05-07 12:36:06 -04:00
parent e47d0446b1
commit c308b2e3c5
1 changed files with 2 additions and 1 deletions

View File

@ -57,8 +57,9 @@ void CScriptPlayerHint::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId send
x108_mpId = kInvalidUniqueId;
if ((x104_overrideFlags & 0x4000) != 0) {
for (const SConnection& conn : x20_conns) {
if (conn.x0_state != EScriptObjectState::Play)
if (conn.x0_state != EScriptObjectState::Play) {
continue;
}
x108_mpId = mgr.GetIdForScript(conn.x8_objId);
if (TCastToConstPtr<MP1::CMetroidPrimeRelay> mpRelay = mgr.GetObjectById(x108_mpId)) {
x108_mpId = mpRelay->GetMetroidPrimeExoId();