From df5b930924218ca6d9ec1fd2cc8edcec5698750c Mon Sep 17 00:00:00 2001 From: nothan Date: Sun, 20 Feb 2011 04:08:29 +0900 Subject: [PATCH] modified be infinite loop when does not specify the count attribute in the repeat tag --- src/livemlrunner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/livemlrunner.cpp b/src/livemlrunner.cpp index c0e5406..262cea7 100644 --- a/src/livemlrunner.cpp +++ b/src/livemlrunner.cpp @@ -154,8 +154,8 @@ namespace lmlCommand unsigned int *counter = param.actionStack->repeatCounter.back(); if (*counter > 1) { - (*counter)--; param.actionStack->current()->tag = param.getTag(0); + if (param.getTag(0)->param.has(1)) (*counter)--; } else param.actionStack->repeatCounter.remove(counter); -- 2.11.0