aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Storage.c b/src/Storage.c
index 76e2fa9..d069b07 100644
--- a/src/Storage.c
+++ b/src/Storage.c
@@ -1670,7 +1670,7 @@ static int PUGHi_DisableScalarGroupStorage (pGH *pughGH,
for (variable = 0; variable < n_variables; variable++)
{
- for (level = max_timelevels-1; level >= 0; level++)
+ for (level = 0; level < max_timelevels; level++)
{
temp = pughGH->variables[variable+first_var][level];