Fix warning

This commit is contained in:
momo5502 2021-04-12 12:34:31 +02:00
parent a44129f270
commit 92177e515a

View File

@ -93,7 +93,8 @@ namespace scripting
if (!safe_execution::call(function, entref))
{
throw std::runtime_error("Error executing "s + (is_method_call ? "method" : "function") +" '" + name + "'");
throw std::runtime_error(
"Error executing "s + (is_method_call ? "method" : "function") + " '" + name + "'");
}
return get_return_value();
@ -198,12 +199,8 @@ namespace scripting
return value;
}
else
{
// Add custom fields
return get_custom_field(entity, field);
}
return {};
}
}