SHERLOCK: Fix mixups with sequence stack and script stack
This commit is contained in:
parent
c9890cbacc
commit
e8e095aa2a
3 changed files with 9 additions and 8 deletions
|
@ -883,7 +883,7 @@ void Talk::pullSequence() {
|
|||
if (_scriptStack.empty())
|
||||
return;
|
||||
|
||||
SequenceEntry seq = _scriptStack.pop();
|
||||
SequenceEntry seq = _sequenceStack.pop();
|
||||
if (seq._objNum != -1) {
|
||||
Object &obj = scene._bgShapes[seq._objNum];
|
||||
|
||||
|
@ -911,7 +911,7 @@ void Talk::pushSequence(int speaker) {
|
|||
if (speaker == -1)
|
||||
return;
|
||||
|
||||
ScriptStackEntry seqEntry;
|
||||
SequenceEntry seqEntry;
|
||||
if (!speaker) {
|
||||
seqEntry._objNum = -1;
|
||||
} else {
|
||||
|
@ -925,7 +925,7 @@ void Talk::pushSequence(int speaker) {
|
|||
seqEntry._seqTo = obj._seqTo;
|
||||
}
|
||||
|
||||
_scriptStack.push(seqEntry);
|
||||
_sequenceStack.push(seqEntry);
|
||||
if (_scriptStack.size() >= 5)
|
||||
error("script stack overflow");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue