diff options
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r-- | engines/dreamweb/stubs.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 7e871bd42a..0b3daa861e 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -2482,9 +2482,10 @@ void DreamGenContext::setLocation() { setLocation(al); } -const uint8 *DreamGenContext::getTextInFile1(uint16 index) { - uint16 offset = getSegment(data.word(kTextfile1)).word(index * 2) + kTextstart; - const uint8 *string = getSegment(data.word(kTextfile1)).ptr(offset, 0); +const uint8 *DreamBase::getTextInFile1(uint16 index) { + SegmentRef text = getSegment(data.word(kTextfile1)); + uint16 offset = text.word(index * 2) + kTextstart; + const uint8 *string = text.ptr(offset, 0); return string; } |