aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/draw_v1.cpp
diff options
context:
space:
mode:
authorSven Hesse2006-06-13 08:10:54 +0000
committerSven Hesse2006-06-13 08:10:54 +0000
commit243e6b2d2711da4901110868c7bd8e4d9d20a74d (patch)
treef2b964b923081661f132165e72d123be37a264a4 /engines/gob/draw_v1.cpp
parent486f1813145e5da74314929cd3f4d9df4cfa4841 (diff)
downloadscummvm-rg350-243e6b2d2711da4901110868c7bd8e4d9d20a74d.tar.gz
scummvm-rg350-243e6b2d2711da4901110868c7bd8e4d9d20a74d.tar.bz2
scummvm-rg350-243e6b2d2711da4901110868c7bd8e4d9d20a74d.zip
Fixing Scenery::_statics, Game::_totTextData and Game::_totResourceTable
svn-id: r23078
Diffstat (limited to 'engines/gob/draw_v1.cpp')
-rw-r--r--engines/gob/draw_v1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/draw_v1.cpp b/engines/gob/draw_v1.cpp
index 7307c169ba..31377059b7 100644
--- a/engines/gob/draw_v1.cpp
+++ b/engines/gob/draw_v1.cpp
@@ -60,7 +60,7 @@ void Draw_v1::printText(void) {
_vm->_cdrom->playMultMusic();
- dataPtr = (char *)_vm->_game->_totTextData + _vm->_game->_totTextData->items[index].offset;
+ dataPtr = _vm->_game->_totTextData->dataPtr + _vm->_game->_totTextData->items[index].offset;
ptr = dataPtr;
if (_renderFlags & RENDERFLAG_CAPTUREPUSH) {
@@ -334,7 +334,7 @@ void Draw_v1::spriteOperation(int16 operation) {
offset = itemPtr->offset;
if (offset >= 0) {
dataBuf =
- ((char *)_vm->_game->_totResourceTable) +
+ _vm->_game->_totResourceTable->dataPtr +
szGame_TotResTable + szGame_TotResItem *
_vm->_game->_totResourceTable->itemsCount + offset;
} else {