foxygit / fake-08-xbox360 Log in
commit 79e85bec25a747283f06c4ed484df4f66b7210ea
Author:     Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Wed Dec 31 13:26:19 2025 -0700
Commit:     Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Wed Dec 31 13:26:19 2025 -0700

    improve readability
---
 source/p8GlobalLuaFunctions.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/source/p8GlobalLuaFunctions.h b/source/p8GlobalLuaFunctions.h
index 8a8e21e..a604bf1 100644
--- a/source/p8GlobalLuaFunctions.h
+++ b/source/p8GlobalLuaFunctions.h
@@ -503,7 +503,10 @@ function __z8_run_cart(cart_code)
                     _update_buttons()
                     _update60()
                 elseif _update then
-                    if (do_frame) _update_buttons() _update()
+                    if (do_frame) then
+                        _update_buttons()
+                        _update()
+                    end
                     do_frame = not do_frame
                 else
                     _update_buttons()