Fixed a race condition caused by disabling and enabling a Lua script with scr_patch more than once.

This commit is contained in:
gir489returns 2024-08-29 18:52:32 -04:00
parent 6bc6801fec
commit f08dad6c4e

View File

@ -27,7 +27,6 @@ namespace lua::scr_patch
scr_patch::~scr_patch() scr_patch::~scr_patch()
{ {
disable();
big::g_script_patcher_service->remove_patch(m_patch_name); big::g_script_patcher_service->remove_patch(m_patch_name);
} }