Skip to content

Commit

Permalink
Fixed seeking after reaching EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
mantognini committed Dec 22, 2014
1 parent 54ff43c commit 090cfb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SFML/System/FileInputStream.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 090cfb0

Please sign in to comment.