This commit is contained in:
Zoe Roux
2021-06-18 16:07:40 +02:00
parent 508fa89a8a
commit 000528ba14
4 changed files with 19 additions and 15 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ namespace BBM
.addComponent<Drawable2DComponent, RAY::Texture>("assets/buttons/button_back.png")
.addComponent<OnClickComponent>([](WAL::Entity &entity, WAL::Wal &)
{
gameState.nextScene = BBM::GameState::SceneID::MainMenuScene;
gameState.nextScene = gameState.previousScene;
})
.addComponent<OnIdleComponent>([](WAL::Entity &entity, WAL::Wal &)
{