From 97515abfb2859e289df9d65d7106f35159749131 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 7 Nov 2024 15:27:21 +0100 Subject: no more singleton systems --- src/example/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/example/script.cpp') diff --git a/src/example/script.cpp b/src/example/script.cpp index 928eddf..8ca4ceb 100644 --- a/src/example/script.cpp +++ b/src/example/script.cpp @@ -41,7 +41,7 @@ int main() { // Get ScriptSystem singleton instance (this would normally be done from the // game loop) - auto & sys = ScriptSystem::get_instance(); + ScriptSystem sys; // Update all scripts. This should result in MyScript::update being called sys.update(); -- cgit v1.2.3