diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-07 15:27:21 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-07 15:27:21 +0100 |
commit | 97515abfb2859e289df9d65d7106f35159749131 (patch) | |
tree | a5755978b1e4c35d258f7b5c9c1bfec529f85ab3 /src/example/script.cpp | |
parent | b4834c99c1afced63ee0c266b38925b95782bdf6 (diff) |
no more singleton systems
Diffstat (limited to 'src/example/script.cpp')
-rw-r--r-- | src/example/script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |