Allow separate ride and vehicle names per ride entry

This commit is contained in:
Michael Steenbeek committed 2017-11-21 18:55:42 +01:00
1 parent 76dc490fca
commit c1400a12eb
10 files changed
+70 -8

No files matched your search

+2
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 : "";