Skip to content

Commit

Permalink
Fix crashing (do not use RTTIExtender)
Browse files Browse the repository at this point in the history
  • Loading branch information
WSSDude committed Sep 25, 2023
1 parent e273324 commit 0cca2d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/scripting/Scripting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <reverse/ResourceAsyncReference.h>
#include <reverse/NativeProxy.h>
#include <reverse/RTTILocator.h>
#include <reverse/RTTIExtender.h>
#include <reverse/Converter.h>
#include <reverse/TweakDB/TweakDB.h>
#include <sol_imgui/sol_imgui.h>
Expand Down Expand Up @@ -479,7 +478,7 @@ void Scripting::PostInitializeScripting()
globals["Game"] = this;

RTTIHelper::Initialize(m_lua.AsRef(), m_sandbox);
RTTIExtender::InitializeTypes();
//RTTIExtender::InitializeTypes();

m_mapper.Register();

Expand Down Expand Up @@ -516,7 +515,7 @@ void Scripting::PostInitializeMods()
auto lua = m_lua.Lock();
auto& luaVm = lua.Get();

RTTIExtender::InitializeSingletons();
//RTTIExtender::InitializeSingletons();

RegisterOverrides();

Expand Down

0 comments on commit 0cca2d9

Please sign in to comment.