aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2009-06-13 22:10:55 +0000
committerSven Hesse2009-06-13 22:10:55 +0000
commitccb92ebfee9829ff85deeacbe4f8c01e476fd2e8 (patch)
treec76045a2e07c6ef43d43bdbf7f34d81a28b2de9a /engines/gob
parent6eed461c94bb04391b759c4bfed88588a8d170c1 (diff)
downloadscummvm-rg350-ccb92ebfee9829ff85deeacbe4f8c01e476fd2e8.tar.gz
scummvm-rg350-ccb92ebfee9829ff85deeacbe4f8c01e476fd2e8.tar.bz2
scummvm-rg350-ccb92ebfee9829ff85deeacbe4f8c01e476fd2e8.zip
Making TotTextData's item's offsets unsigned. This could fix the crash in the Polish Woodruff version (bug #2804962)
svn-id: r41497
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/draw_v2.cpp2
-rw-r--r--engines/gob/game.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/draw_v2.cpp b/engines/gob/draw_v2.cpp
index 4bb8120e3a..40ae45a1f8 100644
--- a/engines/gob/draw_v2.cpp
+++ b/engines/gob/draw_v2.cpp
@@ -207,7 +207,7 @@ void Draw_v2::printTotText(int16 id) {
if (!_vm->_game->_totTextData || !_vm->_game->_totTextData->dataPtr ||
(id >= _vm->_game->_totTextData->itemsCount) ||
- (_vm->_game->_totTextData->items[id].offset == -1) ||
+ (_vm->_game->_totTextData->items[id].offset == 0xFFFF) ||
(_vm->_game->_totTextData->items[id].size == 0))
return;
diff --git a/engines/gob/game.h b/engines/gob/game.h
index 3264288a32..6e87d8cdd0 100644
--- a/engines/gob/game.h
+++ b/engines/gob/game.h
@@ -51,7 +51,7 @@ public:
#define szGame_TotTextItem (2 + 2)
struct TotTextItem {
- int16 offset;
+ uint16 offset;
int16 size;
} PACKED_STRUCT;