mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 01:08:15 +01:00
[apps/shared] Fix wrong assertions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user