Small fix

This commit is contained in:
Federico Cecchetto 2022-08-01 22:20:28 +02:00
parent 3a5d262691
commit 33088d070b

View File

@ -40,13 +40,16 @@ namespace scripting::lua
continue; continue;
} }
if (!has_built_arguments) if (!i->is_deleted)
{ {
has_built_arguments = true; if (!has_built_arguments)
arguments = this->build_arguments(event); {
} has_built_arguments = true;
arguments = this->build_arguments(event);
}
handle_error(i->callback(sol::as_args(arguments))); handle_error(i->callback(sol::as_args(arguments)));
}
if (i->is_volatile || i->is_deleted) if (i->is_volatile || i->is_deleted)
{ {