mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
Fix warning
This commit is contained in:
parent
a44129f270
commit
92177e515a
@ -93,7 +93,8 @@ namespace scripting
|
|||||||
|
|
||||||
if (!safe_execution::call(function, entref))
|
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();
|
return get_return_value();
|
||||||
@ -198,12 +199,8 @@ namespace scripting
|
|||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
// Add custom fields
|
|
||||||
return get_custom_field(entity, field);
|
|
||||||
}
|
|
||||||
|
|
||||||
return {};
|
// Add custom fields
|
||||||
|
return get_custom_field(entity, field);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user