mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 08:14:38 +01:00
Return null for legacyIdentifier
This commit is contained in:
@@ -145,17 +145,18 @@ namespace OpenRCT2::Scripting
|
||||
return {};
|
||||
}
|
||||
|
||||
std::string legacyIdentifier_get() const
|
||||
DukValue legacyIdentifier_get() const
|
||||
{
|
||||
auto ctx = GetContext()->GetScriptEngine().GetContext();
|
||||
auto installedObject = GetInstalledObject();
|
||||
if (installedObject != nullptr)
|
||||
{
|
||||
if (!installedObject->ObjectEntry.IsEmpty())
|
||||
{
|
||||
return std::string(installedObject->ObjectEntry.GetName());
|
||||
return ToDuk(ctx, installedObject->ObjectEntry.GetName());
|
||||
}
|
||||
}
|
||||
return {};
|
||||
return ToDuk(ctx, nullptr);
|
||||
}
|
||||
|
||||
std::vector<std::string> authors_get() const
|
||||
|
||||
Reference in New Issue
Block a user