diff --git a/src/SFML/System/FileInputStream.cpp b/src/SFML/System/FileInputStream.cpp index 731129b9..c9c1a49c 100644 --- a/src/SFML/System/FileInputStream.cpp +++ b/src/SFML/System/FileInputStream.cpp @@ -49,7 +49,7 @@ Int64 FileInputStream::read(void* data, Int64 size) //////////////////////////////////////////////////////////// Int64 FileInputStream::seek(Int64 position) { - if (m_file.eof()) + if (m_file.eof() || m_file.fail()) m_file.clear(); m_file.seekg(position); return tell();