Commit 32a4087f authored by Lioncache's avatar Lioncache

CScriptAiJumpPoint: Mark reference as const in AcceptScriptMsg

None of the data members of the referenced connections are modified.
parent 55364174
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment