From c9a503d963673f1988c8c999862f4b2939fd13c8 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 28 Jun 2024 18:43:47 -0600 Subject: [PATCH] make it safe for nextFrameActions to queue for the next next frame --- src/hollywoo_flixel/HollywooFlixelDSL.kiss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hollywoo_flixel/HollywooFlixelDSL.kiss b/src/hollywoo_flixel/HollywooFlixelDSL.kiss index a5d8568..77f3fa8 100644 --- a/src/hollywoo_flixel/HollywooFlixelDSL.kiss +++ b/src/hollywoo_flixel/HollywooFlixelDSL.kiss @@ -347,9 +347,10 @@ (when ccToCall (ccToCall)) - (doFor action nextFrameActions - (action)) - (set nextFrameActions []) + (let [thisFrameActions (nextFrameActions.copy)] + (set nextFrameActions []) + (doFor action thisFrameActions + (action))) (flxDirector.update) (unless paused