mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 05:23:04 +01:00
Refactor objects
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user