aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/scicore/decompress0.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/scicore/decompress0.cpp')
-rw-r--r--engines/sci/scicore/decompress0.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sci/scicore/decompress0.cpp b/engines/sci/scicore/decompress0.cpp
index aa6dd0c286..701c70e639 100644
--- a/engines/sci/scicore/decompress0.cpp
+++ b/engines/sci/scicore/decompress0.cpp
@@ -27,6 +27,9 @@
** This is for SCI version 0 style compression.
*/
+#include "common/stream.h"
+#include "common/endian.h"
+
#include "sci/include/sci_memory.h"
#include "sci/include/sciresource.h"
@@ -188,7 +191,7 @@ gint16 getc2(guint8 *node, guint8 *src, guint16 *bytectr, guint16 *bitctr, int c
node += next << 1;
}
- return getInt16(node);
+ return (int16)READ_UINT16(node);
}
// Huffman token decryptor