aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2016-02-25 07:50:44 -0500
committerPaul Gilbert2016-02-25 07:50:44 -0500
commit27f5f9e926159186da254a00a8bedc6dd028d2f4 (patch)
treebd30b63388a406a0747ab15d9300816ad8eb018d /engines/titanic
parentf509f3322b54e2ffddc0244dca365756e0b47401 (diff)
downloadscummvm-rg350-27f5f9e926159186da254a00a8bedc6dd028d2f4.tar.gz
scummvm-rg350-27f5f9e926159186da254a00a8bedc6dd028d2f4.tar.bz2
scummvm-rg350-27f5f9e926159186da254a00a8bedc6dd028d2f4.zip
TITANIC: Fix loading CLinkItem
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/objects/link_item.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/titanic/objects/link_item.cpp b/engines/titanic/objects/link_item.cpp
index 90774ad43c..fe2a7cf162 100644
--- a/engines/titanic/objects/link_item.cpp
+++ b/engines/titanic/objects/link_item.cpp
@@ -59,7 +59,7 @@ void CLinkItem::load(SimpleFile *file) {
file->readBuffer();
switch (val) {
- case 3:
+ case 2:
_field34 = file->readNumber();
// Deliberate fall-through
@@ -71,6 +71,12 @@ void CLinkItem::load(SimpleFile *file) {
_field24 = file->readNumber();
_field28 = file->readNumber();
_field2C = file->readNumber();
+
+ file->readBuffer();
+ _sub._field0 = file->readNumber();
+ _sub._field4 = file->readNumber();
+ _sub._field8 = file->readNumber();
+ _sub._fieldC = file->readNumber();
break;
default: