diff --git a/src/openrct2/rct2/S6Exporter.cpp b/src/openrct2/rct2/S6Exporter.cpp index 9962a80169..9dce0691a8 100644 --- a/src/openrct2/rct2/S6Exporter.cpp +++ b/src/openrct2/rct2/S6Exporter.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * @@ -24,6 +24,7 @@ #include "../object/ObjectRepository.h" #include "../rct12/SawyerChunkWriter.h" #include "S6Exporter.h" +#include extern "C" { @@ -138,7 +139,7 @@ void S6Exporter::Save(IStream * stream, bool isScenario) // Read all written bytes back into a single buffer stream->SetPosition(0); - auto data = std::unique_ptr(stream->ReadArray(fileSize)); + auto data = std::unique_ptr>(stream->ReadArray(fileSize), Memory::Free); uint32 checksum = sawyercoding_calculate_checksum(data.get(), fileSize); // Write the checksum on the end