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;
}
if (!has_built_arguments)
if (!i->is_deleted)
{
has_built_arguments = true;
arguments = this->build_arguments(event);
}
if (!has_built_arguments)
{
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)
{