Skip to content

Commit

Permalink
Disable TweakDB changes tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
psiberx committed Sep 28, 2023
1 parent e50f0ac commit c14240e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scripting/LuaVM_Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@ uint64_t LuaVM::HookTweakDBLoad(uintptr_t aThis, uintptr_t aParam)
{
const auto ret = s_vm->m_realTweakDBLoad(aThis, aParam);

// Disable changes tracking added to TweakDB in patch 2.0 and causing instability.
RED4ext::TweakDB::Get()->unk160 = 0;

s_vm->PostInitializeTweakDB();

return ret;
Expand Down

0 comments on commit c14240e

Please sign in to comment.