make it safe for nextFrameActions to queue for the next next frame

This commit is contained in:
2024-06-28 18:43:47 -06:00
parent 5863e0b762
commit c9a503d963

View File

@@ -347,9 +347,10 @@
(when ccToCall (when ccToCall
(ccToCall)) (ccToCall))
(doFor action nextFrameActions (let [thisFrameActions (nextFrameActions.copy)]
(action)) (set nextFrameActions [])
(set nextFrameActions []) (doFor action thisFrameActions
(action)))
(flxDirector.update) (flxDirector.update)
(unless paused (unless paused