Tier0: use cached results from GetInternalStreamMode()

No need to call it again.
This commit is contained in:
Kawe Mazidjatari 2025-02-02 14:52:05 +01:00
parent e63660b549
commit b288d072db

View File

@ -54,7 +54,7 @@ bool CIOStream::Open(const char* const filePath, const Mode_e mode)
m_stream.close(); m_stream.close();
} }
m_stream.open(filePath, GetInternalStreamMode(mode)); m_stream.open(filePath, m_flags);
if (!m_stream.is_open() || !m_stream.good()) if (!m_stream.is_open() || !m_stream.good())
{ {