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,6 +191,7 @@ namespace psemek::app
|
||||||
void app::run()
|
void app::run()
|
||||||
{
|
{
|
||||||
impl().running = true;
|
impl().running = true;
|
||||||
|
if (impl().current_scene == nullptr)
|
||||||
impl().get_scene()->on_scene_enter();
|
impl().get_scene()->on_scene_enter();
|
||||||
while (running())
|
while (running())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue