Update notifies.cpp

This commit is contained in:
fed 2022-11-13 20:03:10 +01:00
parent 0e056e6835
commit f92f22dac0

View File

@ -250,9 +250,9 @@ namespace notifies
scr_entity_damage_hook.create(0x1404BD2E0, scr_entity_damage_stub); scr_entity_damage_hook.create(0x1404BD2E0, scr_entity_damage_stub);
scripting::on_shutdown([](bool free_scripts, bool /*post_shutdown*/) scripting::on_shutdown([](bool free_scripts, bool post_shutdown)
{ {
if (free_scripts) if (free_scripts && !post_shutdown)
{ {
vm_execute_hooks.clear(); vm_execute_hooks.clear();
} }