diff options
author | Paul Gilbert | 2015-06-06 12:03:54 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-06-06 12:03:54 -0400 |
commit | 57017e4bc121765c7cd51c6fab4d1210aeace193 (patch) | |
tree | 8a920113fb0b7398351381262be86b5b69def191 /engines/sherlock/talk.cpp | |
parent | e48d6aecae1c442b9a9f7afd4def8ff04e28dde3 (diff) | |
download | scummvm-rg350-57017e4bc121765c7cd51c6fab4d1210aeace193.tar.gz scummvm-rg350-57017e4bc121765c7cd51c6fab4d1210aeace193.tar.bz2 scummvm-rg350-57017e4bc121765c7cd51c6fab4d1210aeace193.zip |
SHERLOCK: Increase size of RT _talkHistory
Diffstat (limited to 'engines/sherlock/talk.cpp')
-rw-r--r-- | engines/sherlock/talk.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp index 93285e217c..dd2a2a93ca 100644 --- a/engines/sherlock/talk.cpp +++ b/engines/sherlock/talk.cpp @@ -123,6 +123,8 @@ Talk::Talk(SherlockEngine *vm) : _vm(vm) { _seqCount = 0; _scriptStart = _scriptEnd = nullptr; _endStr = _noTextYet = false; + + _talkHistory.resize(IS_ROSE_TATTOO ? 1500 : 500); } void Talk::talkTo(const Common::String &filename) { @@ -1309,7 +1311,7 @@ void Talk::popStack() { } void Talk::synchronize(Common::Serializer &s) { - for (int idx = 0; idx < MAX_TALK_FILES; ++idx) { + for (uint idx = 0; idx < _talkHistory.size(); ++idx) { TalkHistoryEntry &he = _talkHistory[idx]; for (int flag = 0; flag < 16; ++flag) |