1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

add helper methods for object entry names

This commit is contained in:
Ted John
2016-07-09 15:24:00 +01:00
parent 3c64010fe1
commit ce878723d7
4 changed files with 29 additions and 4 deletions

View File

@@ -192,8 +192,8 @@ public:
void AddObject(const rct_object_entry * objectEntry, const void * data, size_t dataSize) override
{
char objectName[9] = { 0 };
Memory::Copy(objectName, objectEntry->name, 8);
utf8 objectName[9];
object_entry_get_name_fixed(objectName, sizeof(objectName), objectEntry);
int realChecksum = object_calculate_checksum(objectEntry, (const uint8 *)data, (int)dataSize);
if (realChecksum != objectEntry->checksum)