diff --git a/src/lparser.cpp b/src/lparser.cpp index 5504c6886e..8ca2fc346d 100644 --- a/src/lparser.cpp +++ b/src/lparser.cpp @@ -3979,7 +3979,7 @@ static void usestat (LexState *ls) { if (testnext(ls, '=')) { if (testnext(ls, TK_FALSE)) enable = false; - else checknext(ls, TK_FALSE); + else checknext(ls, TK_TRUE); } if (is_enabled != enable) { if (enable)