aboutsummaryrefslogtreecommitdiff
path: root/extension/src/register_types.cpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-02-22 22:17:27 +0100
committer GitHub <noreply@github.com>2023-02-22 22:17:27 +0100
commit659902727ea838b84b4ea81bfda3b5db3c6e388b (patch)
treef2c89a2046ad724dcf7d468460b47008f3d67d98 /extension/src/register_types.cpp
parentf1c23555878ee4b0e40c6af5f89f05b666012309 (diff)
Delete Simulation singleton correctly. (#17)
Diffstat (limited to 'extension/src/register_types.cpp')
-rw-r--r--extension/src/register_types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/extension/src/register_types.cpp b/extension/src/register_types.cpp
index 4b049ce..84e4dc4 100644
--- a/extension/src/register_types.cpp
+++ b/extension/src/register_types.cpp
@@ -39,7 +39,7 @@ void uninitialize_openvic2_types(ModuleInitializationLevel p_level) {
memdelete(_test_singleton);
Engine::get_singleton()->unregister_singleton("Simulation");
- memdelete(_test_singleton);
+ memdelete(_simulation);
}
extern "C"