forked from rosebudai/OpenRCT2-Web
Allow separate ride and vehicle names per ride entry
This commit is contained in:
1 parent
76dc490fca
commit
c1400a12eb
10 files changed
+70
-8
No files matched your search
@@ -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