diff options
Diffstat (limited to 'engines/access')
-rw-r--r-- | engines/access/files.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/access/files.cpp b/engines/access/files.cpp index c449d906cd..d8823c0510 100644 --- a/engines/access/files.cpp +++ b/engines/access/files.cpp @@ -62,8 +62,10 @@ Resource::~Resource() { byte *Resource::data() { if (_data == nullptr) { _data = new byte[_size]; + int pos = _stream->pos(); _stream->seek(0); _stream->read(_data, _size); + _stream->seek(pos); } return _data; |