aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/gob/resources.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/gob/resources.cpp b/engines/gob/resources.cpp
index b71ae37615..e36262f8d3 100644
--- a/engines/gob/resources.cpp
+++ b/engines/gob/resources.cpp
@@ -574,8 +574,9 @@ TextItem *Resources::getTextItem(uint16 id) const {
return 0;
if ((totItem.offset + totItem.size) > (_totTextTable->size)) {
// HACK: Some Fascination versions (Amiga, Atari and first PC floppies) have a different header, which is a problem here.
+// Playtoons also have the same problem (and workaround).
// TODO: Handle that in a proper way
- if ((_vm->getGameType() == kGameTypeFascination) & (_totTextTable->size < 0))
+ if (((_vm->getGameType() == kGameTypeFascination) | (_vm->getGameType() == kGameTypePlaytoons)) & (_totTextTable->size < 0))
warning("totTextTable with negative size id:%d offset:%d in file %s : (size: %d)", id, totItem.offset, _totFile.c_str(), _totTextTable->size);
else
return 0;