瀏覽代碼

[lua] Fix unnecessary _hx_do_first (#11453)

Zorbn 1 年之前
父節點
當前提交
d847c9c76b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/generators/genlua.ml

+ 2 - 1
src/generators/genlua.ml

@@ -582,9 +582,10 @@ and gen_loop ctx cond do_while e =
     if do_while then
         print ctx " or _hx_do_first_%i" ctx.break_depth;
     print ctx " do ";
-    if do_while then
+    if do_while then begin
         newline ctx;
         println ctx "_hx_do_first_%i = false;" ctx.break_depth;
+    end;
     if will_continue then print ctx "repeat ";
     gen_block_element ctx e;
     if will_continue then begin