From 715fe82483b57c799e38d08039d73c0543e5c878 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 22 Dec 2016 13:28:02 +0100 Subject: [PATCH] [Stream] Fix stream writing --- src/Utils/Stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/Stream.cpp b/src/Utils/Stream.cpp index 42cdd9cc..3dbce286 100644 --- a/src/Utils/Stream.cpp +++ b/src/Utils/Stream.cpp @@ -104,7 +104,7 @@ namespace Utils // Only those seem to actually write data. // everything else is allocated at runtime but XFILE_BLOCK_RUNTIME is the only one that actually allocates anything // clearly half of this stuff is unused - if (stream != Game::XFILE_BLOCK_TEMP && stream != Game::XFILE_BLOCK_VIRTUAL && stream != Game::XFILE_BLOCK_PHYSICAL && stream != Game::XFILE_BLOCK_INVALID) + if (stream == Game::XFILE_BLOCK_RUNTIME) { this->increaseBlockSize(stream, size * count); return this->at();