1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

Refactor objects

This commit is contained in:
Michael Steenbeek
2018-01-02 20:36:42 +01:00
parent da519c9b32
commit 347ff702d0
44 changed files with 248 additions and 242 deletions

View File

@@ -29,7 +29,7 @@
#include "SmallSceneryObject.h"
#include "WallObject.h"
#include "../ObjectList.h"
#include "ObjectList.h"
class ObjectManager final : public IObjectManager
{
@@ -583,15 +583,15 @@ private:
static void ReportMissingObject(const rct_object_entry * entry)
{
utf8 objName[9] = { 0 };
Memory::Copy(objName, entry->name, 8);
utf8 objName[DAT_NAME_LENGTH + 1] = { 0 };
Memory::Copy(objName, entry->name, DAT_NAME_LENGTH);
Console::Error::WriteLine("[%s] Object not found.", objName);
}
void ReportObjectLoadProblem(const rct_object_entry * entry)
{
utf8 objName[9] = { 0 };
Memory::Copy(objName, entry->name, 8);
utf8 objName[DAT_NAME_LENGTH + 1] = { 0 };
Memory::Copy(objName, entry->name, DAT_NAME_LENGTH);
Console::Error::WriteLine("[%s] Object could not be loaded.", objName);
}