aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/SceneManager.cpp
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-21 08:47:36 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-21 08:47:36 +0100
commit801be9bd006a5f9f24a76067113bf1fd756aabbd (patch)
treeaa33d2d951e43aaac28e5f832e7eabd627d6a5ea /src/crepe/api/SceneManager.cpp
parente585e01b625fcdbc00709c1bbade1b542b1f6139 (diff)
Replaced Scene's name variable with get_name() method
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