diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/segment.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/engine/segment.cpp b/engines/sci/engine/segment.cpp index 5410d82c24..793878f7b5 100644 --- a/engines/sci/engine/segment.cpp +++ b/engines/sci/engine/segment.cpp @@ -277,6 +277,8 @@ SegmentRef DataStack::dereference(reg_t pointer) { ret.isRaw = false; // reg_t based data! ret.maxSize = _capacity * sizeof(reg_t); // FIXME: Is this correct? See comment in LocalVariables::dereference + if (pointer.offset & 1) + warning("LocalVariables::dereference: Odd offset in pointer %04x:%04x", PRINT_REG(pointer)); ret.raw = (byte *)_entries + pointer.offset; return ret; } |