diff --git a/source/compiler/sc3.c b/source/compiler/sc3.c index f54c545..e32403f 100644 --- a/source/compiler/sc3.c +++ b/source/compiler/sc3.c @@ -2338,7 +2338,7 @@ static int nesting=0; nest_stkusage++; } /* if */ } else if (lval.ident==iCONSTEXPR || lval.ident==iEXPRESSION - || lval.ident==iARRAYCHAR) + || (lval.ident==iARRAYCELL && !lvalue) || lval.ident==iARRAYCHAR) { /* fetch value if needed */ if (lval.ident==iARRAYCHAR)