diff options
author | Max Horn | 2008-09-15 10:05:36 +0000 |
---|---|---|
committer | Max Horn | 2008-09-15 10:05:36 +0000 |
commit | 15959faf3ec45dbcc2576957a68b2f71f0057e48 (patch) | |
tree | 1e34a4826d1f5b937bc352151b33d9ee03eab292 /common | |
parent | 621847b2e2dd5907b8222933fb6eb6748aaf4777 (diff) | |
download | scummvm-rg350-15959faf3ec45dbcc2576957a68b2f71f0057e48.tar.gz scummvm-rg350-15959faf3ec45dbcc2576957a68b2f71f0057e48.tar.bz2 scummvm-rg350-15959faf3ec45dbcc2576957a68b2f71f0057e48.zip |
Fix SubReadStream by initing _eos to false in the constructor (spotted thanks to our unit tests)
svn-id: r34555
Diffstat (limited to 'common')
-rw-r--r-- | common/stream.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/stream.h b/common/stream.h index d88e252661..02677e0dbb 100644 --- a/common/stream.h +++ b/common/stream.h @@ -430,7 +430,8 @@ public: : _parentStream(parentStream), _disposeParentStream(disposeParentStream), _pos(0), - _end(end) { + _end(end), + _eos(false) { assert(parentStream); } ~SubReadStream() { |