Browse Source

whoops, forgot to seek.

David Rose 17 years ago
parent
commit
cef263157d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      panda/src/express/subStreamBuf.cxx

+ 2 - 1
panda/src/express/subStreamBuf.cxx

@@ -237,7 +237,8 @@ underflow() {
     nassertr(gptr() + num_bytes <= egptr(), EOF);
 
     streamsize read_count;
-    _source->read(gptr(), num_bytes, read_count);
+    bool eof;
+    _source->seek_read(_cur, gptr(), num_bytes, read_count, eof);
 
     if (read_count != num_bytes) {
       // Oops, we didn't read what we thought we would.