diff options
Diffstat (limited to 'engines/sherlock')
-rw-r--r-- | engines/sherlock/scalpel/scalpel_talk.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/sherlock/scalpel/scalpel_talk.cpp b/engines/sherlock/scalpel/scalpel_talk.cpp index 4debe7fc26..6f98a17d1d 100644 --- a/engines/sherlock/scalpel/scalpel_talk.cpp +++ b/engines/sherlock/scalpel/scalpel_talk.cpp @@ -885,12 +885,11 @@ void ScalpelTalk::pushSequenceEntry(Object *obj) { seqEntry._objNum = scene._bgShapes.indexOf(*obj); if (seqEntry._objNum != -1) { - Object &obj = scene._bgShapes[seqEntry._objNum]; for (uint idx = 0; idx < MAX_TALK_SEQUENCES; ++idx) - seqEntry._sequences.push_back(obj._sequences[idx]); + seqEntry._sequences.push_back(obj->_sequences[idx]); - seqEntry._frameNumber = obj._frameNumber; - seqEntry._seqTo = obj._seqTo; + seqEntry._frameNumber = obj->_frameNumber; + seqEntry._seqTo = obj->_seqTo; } _sequenceStack.push(seqEntry); |