diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-08-01 18:57:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-01 18:57:35 -0700 |
commit | e64e4d7ef7206d13ce3507de36886ce98524ccf6 (patch) | |
tree | 982608b500feba769970072e1fc36319d1e52b07 | |
parent | b4ae6e9774c535bf02b06325e6763d2d7ee02f21 (diff) | |
download | PrismLauncher-e64e4d7ef7206d13ce3507de36886ce98524ccf6.tar.gz PrismLauncher-e64e4d7ef7206d13ce3507de36886ce98524ccf6.tar.bz2 PrismLauncher-e64e4d7ef7206d13ce3507de36886ce98524ccf6.zip |
Fix: always false comparison
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
-rw-r--r-- | launcher/minecraft/PackProfile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/PackProfile.cpp b/launcher/minecraft/PackProfile.cpp index ea5ebdb1..00809bb0 100644 --- a/launcher/minecraft/PackProfile.cpp +++ b/launcher/minecraft/PackProfile.cpp @@ -535,7 +535,7 @@ ComponentPtr PackProfile::getComponent(const QString &id) ComponentPtr PackProfile::getComponent(size_t index) { - if(index < 0 || index >= static_cast<size_t>(d->components.size())) + if(index >= static_cast<size_t>(d->components.size())) { return nullptr; } |