mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
Fix compile error for missing return
This commit is contained in:
@@ -231,10 +231,9 @@ namespace OpenRCT2::Scripting
|
||||
{
|
||||
return createEntityType<Litter, ScLitter>(_context, initializer);
|
||||
}
|
||||
else
|
||||
{
|
||||
duk_error(_context, DUK_ERR_ERROR, "Invalid entity type.");
|
||||
}
|
||||
|
||||
duk_error(_context, DUK_ERR_ERROR, "Invalid entity type.");
|
||||
return DukValue{};
|
||||
}
|
||||
|
||||
void ScMap::Register(duk_context* ctx)
|
||||
|
||||
Reference in New Issue
Block a user