From 84201678ca7c9e15ebf7e01a0163cfb82e5d0927 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 28 Sep 2020 21:41:14 +0200 Subject: [PATCH] Add comment --- src/openrct2/scenario/ScenarioRepository.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2/scenario/ScenarioRepository.cpp b/src/openrct2/scenario/ScenarioRepository.cpp index 14dadb9301..21f3432dc9 100644 --- a/src/openrct2/scenario/ScenarioRepository.cpp +++ b/src/openrct2/scenario/ScenarioRepository.cpp @@ -210,6 +210,7 @@ private: { auto data = DecryptSea(fs::u8path(path)); auto ms = std::make_unique(); + // Need to copy the data into MemoryStream as the overload will borrow instead of copy. ms->Write(data.data(), data.size()); ms->SetPosition(0); return ms;