1
0
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:
Michael Steenbeek
2017-11-20 16:40:18 +01:00
parent 76dc490fca
commit c1400a12eb
10 changed files with 70 additions and 8 deletions

View File

@@ -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 : "";