From 1c9c972d055966988c0f4e130eb8f7b380bc365e Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Tue, 6 Feb 2007 19:16:41 +0000 Subject: - Fixed Ween's inventory in the volcano (#1630113) - Added a range check to avoid invalid reads into _wayPoints in Map::checkDirectPath() svn-id: r25402 --- engines/gob/game_v2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/gob/game_v2.cpp') diff --git a/engines/gob/game_v2.cpp b/engines/gob/game_v2.cpp index c85482fb6c..9dff07a6dd 100644 --- a/engines/gob/game_v2.cpp +++ b/engines/gob/game_v2.cpp @@ -282,7 +282,7 @@ void Game_v2::playTot(int16 skipPlay) { _vm->_inter->initControlVars(0); _vm->_scenery->_pCaptureCounter = oldCaptureCounter; _vm->_global->_inter_execPtr = (char *)_totFileData; - _vm->_global->_inter_execPtr += (int16) READ_LE_UINT16(_totFileData + (skipPlay << 1) + 0x66); + _vm->_global->_inter_execPtr += READ_LE_UINT16(_totFileData + (skipPlay << 1) + 0x66); _vm->_inter->callSub(2); if (_vm->_inter->_terminate != 0) _vm->_inter->_terminate = 2; -- cgit v1.2.3