1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

fix highlight object in object selection

This commit is contained in:
Ted John
2016-06-30 21:55:18 +01:00
parent 554d445db4
commit f6d6d93580
28 changed files with 121 additions and 124 deletions

View File

@@ -327,19 +327,19 @@ void RideObject::Unload()
gfx_object_free_images(_legacyType.images_offset, GetImageTable()->GetCount());
}
const utf8 * RideObject::GetName()
const utf8 * RideObject::GetName() const
{
const utf8 * name = GetStringTable()->GetString(OBJ_STRING_ID_NAME);
return name != nullptr ? name : "";
}
const utf8 * RideObject::GetDescription()
const utf8 * RideObject::GetDescription() const
{
const utf8 * description = GetStringTable()->GetString(OBJ_STRING_ID_DESCRIPTION);
return description != nullptr ? description : "";
}
const utf8 * RideObject::GetCapacity()
const utf8 * RideObject::GetCapacity() const
{
const utf8 * capacity = GetStringTable()->GetString(OBJ_STRING_ID_CAPACITY);
return capacity != nullptr ? capacity : "";