mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Allow separate ride and vehicle names per ride entry
This commit is contained in:
@@ -53,6 +53,8 @@ const utf8 * Object::GetString(uint8 index) const
|
||||
const utf8 * sz = GetOverrideString(index);
|
||||
if (sz == nullptr)
|
||||
{
|
||||
// DAT objects do not contain separate ride and vehicle names
|
||||
index = (index < OBJ_STRING_ID_VEHICLE_NAME) ? index : OBJ_STRING_ID_NAME;
|
||||
sz = GetStringTable()->GetString(index);
|
||||
}
|
||||
return sz != nullptr ? sz : "";
|
||||
|
||||
Reference in New Issue
Block a user