From b288d072dbb4d374e32db9bb71c7f7bb335550fb Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 2 Feb 2025 14:52:05 +0100 Subject: [PATCH] Tier0: use cached results from GetInternalStreamMode() No need to call it again. --- src/tier0/binstream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tier0/binstream.cpp b/src/tier0/binstream.cpp index 6ee26540..40bc6514 100644 --- a/src/tier0/binstream.cpp +++ b/src/tier0/binstream.cpp @@ -54,7 +54,7 @@ bool CIOStream::Open(const char* const filePath, const Mode_e mode) m_stream.close(); } - m_stream.open(filePath, GetInternalStreamMode(mode)); + m_stream.open(filePath, m_flags); if (!m_stream.is_open() || !m_stream.good()) {