From 0b57c1771ef54df5e740dac278c743a55eef9372 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 26 Feb 2014 07:48:32 +0100 Subject: VOYEUR: Fix pointer in BoltFile::initDefault() --- engines/voyeur/files.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/voyeur/files.cpp b/engines/voyeur/files.cpp index e5f525a403..e78b59bde9 100644 --- a/engines/voyeur/files.cpp +++ b/engines/voyeur/files.cpp @@ -421,7 +421,7 @@ byte *BoltFile::getBoltMember(uint32 id) { } void BoltFile::initDefault() { - _state._curMemberPtr->_data = _state.decompress(0, _state._curMemberPtr->_size, + _state._curMemberPtr->_data = _state.decompress(NULL, _state._curMemberPtr->_size, _state._curMemberPtr->_mode); } @@ -1094,7 +1094,7 @@ PictureResource::PictureResource(BoltFilesState &state, const byte *src): Graphics::Surface &s = state._vm->_graphicsManager._screenSurface; s.fillRect(Common::Rect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT), 0); } else { - // Direct sceren loading picture. In this case, the raw data of the resource + // Direct screen loading picture. In this case, the raw data of the resource // is directly decompressed into the screen surface. Again, bizarre. byte *pDest = (byte *)state._vm->_graphicsManager._screenSurface.getPixels(); state.decompress(pDest, SCREEN_WIDTH * SCREEN_HEIGHT, state._curMemberPtr->_mode); -- cgit v1.2.3