Small fix
This commit is contained in:
parent
bbcad907fa
commit
7610758306
@ -24,14 +24,20 @@ namespace scripting::lua
|
||||
{
|
||||
if (!result.valid())
|
||||
{
|
||||
game_console::print(game_console::con_type_error, "************** Script execution error **************\n");
|
||||
try
|
||||
{
|
||||
game_console::print(game_console::con_type_error, "************** Script execution error **************\n");
|
||||
|
||||
const sol::error err = result;
|
||||
game_console::print(game_console::con_type_error, "%s\n", err.what());
|
||||
const sol::error err = result;
|
||||
game_console::print(game_console::con_type_error, "%s\n", err.what());
|
||||
|
||||
game_console::print(game_console::con_type_error, "****************************************************\n");
|
||||
game_console::print(game_console::con_type_error, "****************************************************\n");
|
||||
|
||||
notify_error();
|
||||
notify_error();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -43,6 +43,12 @@ namespace scripting::lua
|
||||
|
||||
if (!i->is_deleted)
|
||||
{
|
||||
if (!has_built_arguments)
|
||||
{
|
||||
has_built_arguments = true;
|
||||
arguments = this->build_arguments(event);
|
||||
}
|
||||
|
||||
handle_error(i->callback(sol::as_args(arguments)));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user