Browse Source

[lua] Fix unnecessary _hx_do_first (#11453)

Zorbn 1 year ago
parent
commit
d847c9c76b
1 changed files with 2 additions and 1 deletions
  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