[apps/shared] Fix wrong assertions

This commit is contained in:
Léa Saviot
2018-10-12 11:19:38 +02:00
committed by Émilie Feral
parent c0e4eaa56b
commit 46d40602e0
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ StorageFunction * StorageFunctionStore::activeFunctionAtIndex(int i) const {
int currentModelIndex = 0;
StorageFunction * function = modelAtIndex(currentModelIndex++);
while (!function->isNull()) {
assert(currentModelIndex < numberOfModels());
assert(currentModelIndex <= numberOfModels());
if (function->isActive() && function->isDefined()) {
if (i == index) {
return function;