From 32a4087f69b39f5bb3d99622d1e0d2ca6514f590 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 20 May 2020 14:32:20 -0400 Subject: [PATCH] CScriptAiJumpPoint: Mark reference as const in AcceptScriptMsg None of the data members of the referenced connections are modified. --- Runtime/World/CScriptAiJumpPoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/World/CScriptAiJumpPoint.cpp b/Runtime/World/CScriptAiJumpPoint.cpp index 8d4ab9967..b54961f39 100644 --- a/Runtime/World/CScriptAiJumpPoint.cpp +++ b/Runtime/World/CScriptAiJumpPoint.cpp @@ -31,7 +31,7 @@ void CScriptAiJumpPoint::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId oth return; } - for (SConnection& conn : x20_conns) { + for (const SConnection& conn : x20_conns) { if (conn.x0_state != EScriptObjectState::Arrived || conn.x4_msg != EScriptObjectMessage::Next) { continue; }