1
0
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:
ZehMatt
2021-08-11 22:11:25 +03:00
parent 6d1f730359
commit 055ef31912

View File

@@ -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)