diff options
author | Matthew Hoops | 2009-05-07 12:24:42 +0000 |
---|---|---|
committer | Matthew Hoops | 2009-05-07 12:24:42 +0000 |
commit | 226f8860ca0b8e5666ac412e9489654118c1ffd2 (patch) | |
tree | 32319f3bc7d1310695a05b3b443daf9a42a80265 | |
parent | 391cf9d1444446ce62f90e09e71954686ea50a92 (diff) | |
download | scummvm-rg350-226f8860ca0b8e5666ac412e9489654118c1ffd2.tar.gz scummvm-rg350-226f8860ca0b8e5666ac412e9489654118c1ffd2.tar.bz2 scummvm-rg350-226f8860ca0b8e5666ac412e9489654118c1ffd2.zip |
Fix an endian bug
svn-id: r40370
-rw-r--r-- | engines/sci/engine/seg_manager.cpp | 2 |
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; |