2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-13 06:45:53 +00:00

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

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;
} }