aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-08-01 18:57:35 -0700
committerGitHub <noreply@github.com>2023-08-01 18:57:35 -0700
commite64e4d7ef7206d13ce3507de36886ce98524ccf6 (patch)
tree982608b500feba769970072e1fc36319d1e52b07
parentb4ae6e9774c535bf02b06325e6763d2d7ee02f21 (diff)
downloadPrismLauncher-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.cpp2
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;
}