diff --git a/src_main/io/pifile.cpp b/src_main/io/pifile.cpp index 07d4b9d9..45f43c09 100755 --- a/src_main/io/pifile.cpp +++ b/src_main/io/pifile.cpp @@ -319,6 +319,7 @@ void PIFile::flush() { void PIFile::seek(llong position) { if (isClosed()) return; + if (position == pos()) return; _fseek_call_(fd, position, SEEK_SET); clearerr(fd); }