From c1fd22f0b49b220b32c2b1137b7ec8331c33a6ea Mon Sep 17 00:00:00 2001 From: MrZ_26 Date: Tue, 11 Aug 2020 00:35:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=BA=E6=99=AF=E7=B3=BB=E7=BB=9F=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/scene.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zframework/scene.lua b/Zframework/scene.lua index b635ba77..24cb8051 100644 --- a/Zframework/scene.lua +++ b/Zframework/scene.lua @@ -337,8 +337,6 @@ function SCN.swapUpdate() S.time=S.time-1 if S.time==S.mid then SCN.init(S.tar,SCN.cur) - SCN.cur=S.tar - WIDGET.set(Widgets[S.tar]) collectgarbage() --Scene swapped this moment end @@ -348,6 +346,8 @@ function SCN.swapUpdate() end function SCN.init(s,org) if sceneInit[s]then sceneInit[s](org)end + SCN.cur=s + WIDGET.set(Widgets[s]) end function SCN.push(tar,style) if not SCN.swapping then