From 0cca2d9e4719ad9c50c9e24f86d8c555b84c5506 Mon Sep 17 00:00:00 2001 From: Andrej Redeky Date: Tue, 26 Sep 2023 01:18:56 +0200 Subject: [PATCH] Fix crashing (do not use RTTIExtender) --- src/scripting/Scripting.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/scripting/Scripting.cpp b/src/scripting/Scripting.cpp index 1433088d..2a243d2d 100644 --- a/src/scripting/Scripting.cpp +++ b/src/scripting/Scripting.cpp @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include @@ -479,7 +478,7 @@ void Scripting::PostInitializeScripting() globals["Game"] = this; RTTIHelper::Initialize(m_lua.AsRef(), m_sandbox); - RTTIExtender::InitializeTypes(); + //RTTIExtender::InitializeTypes(); m_mapper.Register(); @@ -516,7 +515,7 @@ void Scripting::PostInitializeMods() auto lua = m_lua.Lock(); auto& luaVm = lua.Get(); - RTTIExtender::InitializeSingletons(); + //RTTIExtender::InitializeSingletons(); RegisterOverrides();