1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Fix syntax error and add <memory>

This commit is contained in:
Tom Lankhorst
2019-02-06 11:06:16 +01:00
parent 706d1be865
commit e24314bb5a

View File

@@ -26,6 +26,7 @@
#include "zlib.h"
#include <chrono>
#include <memory>
#include <vector>
namespace OpenRCT2
@@ -303,10 +304,10 @@ namespace OpenRCT2
MemoryStream data(compressLength);
ReplayRecordFile file{ .magic = _currentRecording->magic,
.version = _currentRecording->version,
.uncompressedSize = streamLength,
.data = data };
ReplayRecordFile file = { .magic = _currentRecording->magic,
.version = _currentRecording->version,
.uncompressedSize = streamLength,
.data = data };
auto compressBuf = std::make_unique<unsigned char[]>(compressLength);
compress2(