CScriptAiJumpPoint: Mark reference as const in AcceptScriptMsg

None of the data members of the referenced connections are modified.
This commit is contained in:
Lioncash 2020-05-20 14:32:20 -04:00
parent 5536417474
commit 32a4087f69
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ void CScriptAiJumpPoint::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId oth
return; return;
} }
for (SConnection& conn : x20_conns) { for (const SConnection& conn : x20_conns) {
if (conn.x0_state != EScriptObjectState::Arrived || conn.x4_msg != EScriptObjectMessage::Next) { if (conn.x0_state != EScriptObjectState::Arrived || conn.x4_msg != EScriptObjectMessage::Next) {
continue; continue;
} }