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

Properly save objects, fixes #3886 (#3892)

This commit is contained in:
Michał Janiszewski
2016-06-17 09:30:07 +02:00
committed by Ted John
parent 4be4ed19a3
commit 0ec2b001cb
2 changed files with 3 additions and 4 deletions

View File

@@ -231,14 +231,12 @@ void S6Exporter::Export()
for (int i = 0; i < 721; i++)
{
rct_object_entry_extended *entry = &(RCT2_ADDRESS(0x00F3F03C, rct_object_entry_extended)[i]);
// FIXME: not sure what's going on in here
/*
if (gObjectList[i] == (void *)0xFFFFFFFF)
void *entryData = get_loaded_object_entry(i);
if (entryData == (void *)0xFFFFFFFF)
{
memset(&_s6.objects[i], 0xFF, sizeof(rct_object_entry));
}
else
*/
{
_s6.objects[i] = *((rct_object_entry*)entry);
}

View File

@@ -21,6 +21,7 @@
extern "C"
{
#include "../scenario.h"
#include "../object_list.h"
}
/**