fixed one crash

This commit is contained in:
HENRY Benjamin
2021-06-18 16:33:40 +02:00
parent 3c0d933b83
commit 7164a8b22c
+1 -1
View File
@@ -77,7 +77,7 @@ namespace BBM
ParserYAML::load(gameScene);
} catch (std::exception const &err) {
std::cout << err.what() << std::endl;
Runner::gameState._loadedScenes[GameState::SceneID::GameScene]->addEntity("Error message parser")
gameScene->addEntity("Error message parser")
.addComponent<PositionComponent>(1920 / 5, 2 * 1080 / 4.25, 0)
.addComponent<TimerComponent>(3s, [](WAL::Entity &myEntity, WAL::Wal &wal) {
myEntity.scheduleDeletion();