From f7c2d5d5547166ba27725b346870760367b9e7cf Mon Sep 17 00:00:00 2001 From: lisyarus Date: Fri, 25 Sep 2020 13:43:34 +0300 Subject: [PATCH] Bugfix: call on_scene_enter only once --- libs/app/source/app.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/app/source/app.cpp b/libs/app/source/app.cpp index 150fec57..de3508b1 100644 --- a/libs/app/source/app.cpp +++ b/libs/app/source/app.cpp @@ -191,7 +191,8 @@ namespace psemek::app void app::run() { impl().running = true; - impl().get_scene()->on_scene_enter(); + if (impl().current_scene == nullptr) + impl().get_scene()->on_scene_enter(); while (running()) { poll_events();