aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMatthew Hoops2009-05-07 12:24:42 +0000
committerMatthew Hoops2009-05-07 12:24:42 +0000
commit226f8860ca0b8e5666ac412e9489654118c1ffd2 (patch)
tree32319f3bc7d1310695a05b3b443daf9a42a80265 /engines
parent391cf9d1444446ce62f90e09e71954686ea50a92 (diff)
downloadscummvm-rg350-226f8860ca0b8e5666ac412e9489654118c1ffd2.tar.gz
scummvm-rg350-226f8860ca0b8e5666ac412e9489654118c1ffd2.tar.bz2
scummvm-rg350-226f8860ca0b8e5666ac412e9489654118c1ffd2.zip
Fix an endian bug
svn-id: r40370
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/seg_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/seg_manager.cpp b/engines/sci/engine/seg_manager.cpp
index eae4bb5590..9d64310ca0 100644
--- a/engines/sci/engine/seg_manager.cpp
+++ b/engines/sci/engine/seg_manager.cpp
@@ -750,7 +750,7 @@ Object *SegManager::scriptObjInit11(EngineState *s, reg_t obj_pos) {
VERIFY((byte *) funct_area < scr->buf + scr->buf_size, "Function area pointer references beyond end of script");
variables_nr = READ_LE_UINT16(data + 2);
- functions_nr = *funct_area;
+ functions_nr = READ_LE_UINT16(funct_area);
is_class = READ_LE_UINT16(data + 14) & SCRIPT_INFO_CLASS;
obj->base_method = funct_area;