Fix: always false comparison
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
b4ae6e9774
commit
e64e4d7ef7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user