Fix: always false comparison

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers 2023-08-01 18:57:35 -07:00 committed by GitHub
parent b4ae6e9774
commit e64e4d7ef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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