aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2008-09-15 10:05:36 +0000
committerMax Horn2008-09-15 10:05:36 +0000
commit15959faf3ec45dbcc2576957a68b2f71f0057e48 (patch)
tree1e34a4826d1f5b937bc352151b33d9ee03eab292 /common
parent621847b2e2dd5907b8222933fb6eb6748aaf4777 (diff)
downloadscummvm-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.h3
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() {