Bugfix: call on_scene_enter only once
This commit is contained in:
parent
64751170cb
commit
f7c2d5d554
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue