diff --git a/src/text/scrptrun.cpp b/src/text/scrptrun.cpp index 071b7b239..1bdf797b7 100644 --- a/src/text/scrptrun.cpp +++ b/src/text/scrptrun.cpp @@ -162,6 +162,7 @@ UBool ScriptRun::next() if ((pairIndex & 1) == 0) { ++parenSP; parenStack.emplace_back(pairIndex, scriptCode); + startSP = parenSP; } else if (parenSP >= 0) { int32_t pi = pairIndex & ~1;