diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-06 18:38:45 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-06 18:38:45 +0100 |
commit | 3a5201961ce31d415042c6273d03e46aed7e6eb8 (patch) | |
tree | a7d66c29f69ab73a74e4cda62b7886f08cc961d7 /src/crepe/api/SceneManager.hpp | |
parent | 8b9297c12e47f433b13a45f9a80b2b0de15a3f21 (diff) |
fix code standard and merge #19
Diffstat (limited to 'src/crepe/api/SceneManager.hpp')
-rw-r--r-- | src/crepe/api/SceneManager.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/api/SceneManager.hpp b/src/crepe/api/SceneManager.hpp index e2ba2da..8bad7b2 100644 --- a/src/crepe/api/SceneManager.hpp +++ b/src/crepe/api/SceneManager.hpp @@ -2,11 +2,11 @@ namespace crepe { -// Add a new concrete scene to the scene manager template <typename T> void SceneManager::add_scene(const std::string & name) { static_assert(std::is_base_of<Scene, T>::value, "T must be derived from Scene"); + scenes.emplace_back(make_unique<T>(name)); // The first scene added, is the one that will be loaded at the beginning |