aboutsummaryrefslogtreecommitdiffstats
path: root/Malmstone/Windows/MainWindow.cs
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-08-27 22:41:16 -0700
committerPinapelz <yukais@pinapelz.com>2024-08-27 22:41:16 -0700
commite1c67b6be9fbdbeebe5cd7708dbb24ab57e1138e (patch)
tree2ca4da2db678ed5734b0cca7cacc8debc0bab3c3 /Malmstone/Windows/MainWindow.cs
parent72f85fd952c8e53230c968ef9a433644dae90254 (diff)
limit upper bound of target series rank
Diffstat (limited to 'Malmstone/Windows/MainWindow.cs')
-rw-r--r--Malmstone/Windows/MainWindow.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Malmstone/Windows/MainWindow.cs b/Malmstone/Windows/MainWindow.cs
index 917dd64..2a5de0f 100644
--- a/Malmstone/Windows/MainWindow.cs
+++ b/Malmstone/Windows/MainWindow.cs
@@ -51,7 +51,9 @@ namespace Malmstone.Windows
ImGui.Text("PvP Profile is not loaded.");
}
+ // Bounds checking to ensure no overflows
if (TargetSeriesRank < 1) TargetSeriesRank = 1;
+ if (TargetSeriesRank > 107397) TargetSeriesRank = 107397;
ImGui.Spacing();
ImGui.Separator();
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage