From dcc85e38eab286f5167dbea44fde59bc89ea74c1 Mon Sep 17 00:00:00 2001 From: Luke S Date: Tue, 10 Dec 2019 16:41:05 -0500 Subject: [PATCH] Fix build error in MemoryReader.cpp --- src/athena/MemoryReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/athena/MemoryReader.cpp b/src/athena/MemoryReader.cpp index 8c189fa..8c5fd78 100644 --- a/src/athena/MemoryReader.cpp +++ b/src/athena/MemoryReader.cpp @@ -55,7 +55,7 @@ void MemoryReader::seek(atInt64 position, SeekOrigin origin) { if (((atInt64(m_position) + position) < 0 || (m_position + atUint64(position)) > m_length)) { if (m_globalErr) atFatal(fmt("Position {:08X} outside stream bounds "), position); - m_position = (position < 0 ? 0 ? m_length; + m_position = (position < 0 ? 0 : m_length); setError(); return; }