Fixes from review, post-rebase

This commit is contained in:
Tim Wojtulewicz 2022-05-26 18:39:01 -07:00
parent 9f05fe5bfa
commit 5ca0bb79c8
15 changed files with 59 additions and 30 deletions

View file

@ -166,7 +166,7 @@ void ID::SetVal(ValPtr v)
{
handler = new EventHandler(name);
handler->SetFunc(func);
event_registry->Register(handler);
event_registry->Register(handler, true);
if ( ! IsExport() )
register_new_event({NewRef{}, this});