diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2014-09-07 19:26:06 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2014-09-21 12:29:06 +0200 |
commit | 6a1ceba8c0914691ebc873fd666e7cde1cffdb64 (patch) | |
tree | 4cf5c979672de510ec37039d88258f0ce3e2b1f0 /src/common/resources/outputstreambuffer.cpp | |
parent | f0b38721e05dbda1d3562abc06fec535d1aa5a07 (diff) | |
download | colobot-6a1ceba8c0914691ebc873fd666e7cde1cffdb64.tar.gz colobot-6a1ceba8c0914691ebc873fd666e7cde1cffdb64.tar.bz2 colobot-6a1ceba8c0914691ebc873fd666e7cde1cffdb64.zip |
Some cleaning up
Diffstat (limited to 'src/common/resources/outputstreambuffer.cpp')
-rw-r--r-- | src/common/resources/outputstreambuffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/resources/outputstreambuffer.cpp b/src/common/resources/outputstreambuffer.cpp index 22ed7cb..38979db 100644 --- a/src/common/resources/outputstreambuffer.cpp +++ b/src/common/resources/outputstreambuffer.cpp @@ -59,7 +59,7 @@ std::streambuf::int_type COutputStreamBuffer::overflow(std::streambuf::int_type { /* This function should be called when pptr() == epptr(). We use it also in sync() so we also have to write data if buffer is not full. */ - + if (pbase() == pptr()) // no data to write, sync() called with empty buffer return 0; @@ -68,7 +68,7 @@ std::streambuf::int_type COutputStreamBuffer::overflow(std::streambuf::int_type if (bytes_written <= 0) return traits_type::eof(); - pbump(-bytes_written); + pbump(-bytes_written); // write final char if (ch != traits_type::eof()) { bytes_written = PHYSFS_write(m_file, &ch, 1, 1); |