1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00

Fix S4s never loading if no object errors

This commit is contained in:
Ted John
2017-06-30 18:30:37 +01:00
parent ab38c07fb9
commit c3356d457e

View File

@@ -162,7 +162,7 @@ public:
park_load_result* LoadFromStream(IStream * stream, bool isScenario, bool skipObjectCheck = false) override
{
park_load_result* result = Memory::Allocate<park_load_result>(sizeof(park_load_result));
result->error = PARK_LOAD_ERROR_UNKNOWN;
result->error = PARK_LOAD_ERROR_NONE;
size_t dataSize = stream->GetLength() - stream->GetPosition();
std::unique_ptr<uint8> data = std::unique_ptr<uint8>(stream->ReadArray<uint8>(dataSize));
@@ -196,10 +196,6 @@ public:
result->error = PARK_LOAD_ERROR_BAD_OBJECTS;
}
}
else
{
result->error = PARK_LOAD_ERROR_NONE;
}
}
else
{