aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/SceneManager.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-21 10:00:43 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-21 10:00:43 +0100
commite7facf23888c38e09128749822c8e7d2b1d7e2fe (patch)
treeb89d956bffd98b3e7bece0399a5090300dc1e19d /src/crepe/api/SceneManager.cpp
parente2f085c444a8b37af65816e10bf366e6860d25c2 (diff)
parent1bc04b371f2cc8740f2ee039f75101922da671d6 (diff)
Merge branch 'master' into loek/util
Diffstat (limited to 'src/crepe/api/SceneManager.cpp')
-rw-r--r--src/crepe/api/SceneManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/api/SceneManager.cpp b/src/crepe/api/SceneManager.cpp
index 7fb5cb0..1f783ad 100644
--- a/src/crepe/api/SceneManager.cpp
+++ b/src/crepe/api/SceneManager.cpp
@@ -18,7 +18,7 @@ void SceneManager::load_next_scene() {
auto it = find_if(this->scenes.begin(), this->scenes.end(),
[&next_scene = this->next_scene](unique_ptr<Scene> & scene) {
- return scene->name == next_scene;
+ return scene.get()->get_name() == next_scene;
});
// next scene not found