From f86e570ef4ad79fd74266a23aa6f89323a0781e3 Mon Sep 17 00:00:00 2001 From: PhazonJim Date: Mon, 21 Dec 2020 02:09:54 -0500 Subject: [PATCH] fix for build error in Xcode relating to non-reference types in a for loop --- Runtime/MP1/World/CMetroidPrimeRelay.cpp | 2 +- Runtime/World/CScriptMazeNode.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/MP1/World/CMetroidPrimeRelay.cpp b/Runtime/MP1/World/CMetroidPrimeRelay.cpp index 216c2025a..ab3f9d0a1 100644 --- a/Runtime/MP1/World/CMetroidPrimeRelay.cpp +++ b/Runtime/MP1/World/CMetroidPrimeRelay.cpp @@ -49,7 +49,7 @@ void CMetroidPrimeRelay::GetOrBuildMetroidPrimeExo(CStateManager& mgr) { return; } - for (const auto& act : mgr.GetPhysicsActorObjectList()) { + for (const auto act : mgr.GetPhysicsActorObjectList()) { if (CPatterned::CastTo(act) != nullptr) { return; } diff --git a/Runtime/World/CScriptMazeNode.cpp b/Runtime/World/CScriptMazeNode.cpp index d387bef95..1539ce057 100644 --- a/Runtime/World/CScriptMazeNode.cpp +++ b/Runtime/World/CScriptMazeNode.cpp @@ -116,7 +116,7 @@ void CScriptMazeNode::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, C } } } - for (const auto& ent : mgr.GetAllObjectList()) { + for (const auto ent : mgr.GetAllObjectList()) { if (TCastToPtr node = ent) { if (node->xe8_col == xe8_col - 1 && node->xec_row == xec_row && node->xf0_side == ESide::Right) { auto& cell = maze->GetCell(xe8_col - 1, xec_row);