mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix syntax error and add <memory>
This commit is contained in:
parent
706d1be865
commit
e24314bb5a
|
@ -26,6 +26,7 @@
|
||||||
#include "zlib.h"
|
#include "zlib.h"
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace OpenRCT2
|
namespace OpenRCT2
|
||||||
|
@ -303,10 +304,10 @@ namespace OpenRCT2
|
||||||
|
|
||||||
MemoryStream data(compressLength);
|
MemoryStream data(compressLength);
|
||||||
|
|
||||||
ReplayRecordFile file{ .magic = _currentRecording->magic,
|
ReplayRecordFile file = { .magic = _currentRecording->magic,
|
||||||
.version = _currentRecording->version,
|
.version = _currentRecording->version,
|
||||||
.uncompressedSize = streamLength,
|
.uncompressedSize = streamLength,
|
||||||
.data = data };
|
.data = data };
|
||||||
|
|
||||||
auto compressBuf = std::make_unique<unsigned char[]>(compressLength);
|
auto compressBuf = std::make_unique<unsigned char[]>(compressLength);
|
||||||
compress2(
|
compress2(
|
||||||
|
|
Loading…
Reference in New Issue