Fix script patches crashing game on unload (#590)

This commit is contained in:
maybegreat48
2022-11-12 21:02:50 +00:00
committed by GitHub
parent f68d68a92b
commit c0d20c59a7
8 changed files with 26 additions and 8 deletions

View File

@ -34,6 +34,7 @@ namespace big
native_hooks::~native_hooks()
{
m_script_hooks.clear();
g_native_hooks = nullptr;
}