From ce15c4b5f3a364aa7ec027b508669fe643b34e87 Mon Sep 17 00:00:00 2001 From: Jesse <69196954+ThisAMJ@users.noreply.github.com> Date: Tue, 11 Jun 2024 15:05:03 +1000 Subject: [PATCH] fix: fcps index oob for some reason this doesn't crash for me, but this feature is just riddled with potential places this could happen relevant thread (p2sr) https://discord.com/channels/146404426746167296/1247646622217932924/1247646622217932924 --- src/Features/FCPS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Features/FCPS.cpp b/src/Features/FCPS.cpp index fc8a42995..57b4fdc31 100644 --- a/src/Features/FCPS.cpp +++ b/src/Features/FCPS.cpp @@ -106,7 +106,7 @@ CON_COMMAND(sar_fcps_anim_start, "sar_fcps_anim_start - start animating the idx += g_events.size(); } - if (idx < 0 || idx > (int)g_events.size()) { + if (idx < 0 || idx >= (int)g_events.size()) { console->Print("No such FCPS event!\n"); return; }