diff options
author | Paul Gilbert | 2016-09-02 18:56:03 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-09-02 18:56:03 -0400 |
commit | b6e3c18898ac34caa3acf2bbe57c9c631a4c5407 (patch) | |
tree | 9aa869367a9d692528b564739a9663c33f28c938 /engines | |
parent | b1105a6686215a965e8580af84d16d7732ce5b49 (diff) | |
download | scummvm-rg350-b6e3c18898ac34caa3acf2bbe57c9c631a4c5407.tar.gz scummvm-rg350-b6e3c18898ac34caa3acf2bbe57c9c631a4c5407.tar.bz2 scummvm-rg350-b6e3c18898ac34caa3acf2bbe57c9c631a4c5407.zip |
TITANIC: Fix cahce scan in CDialogueFile::addToCache
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/true_talk/dialogue_file.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/true_talk/dialogue_file.cpp b/engines/titanic/true_talk/dialogue_file.cpp index 34eb164779..cbd3685315 100644 --- a/engines/titanic/true_talk/dialogue_file.cpp +++ b/engines/titanic/true_talk/dialogue_file.cpp @@ -60,7 +60,7 @@ DialogueResource *CDialogueFile::addToCache(int index) { // Scan cache for a free slot uint cacheIndex = 0; - while (cacheIndex < _cache.size() && !_cache[cacheIndex]._active) + while (cacheIndex < _cache.size() && _cache[cacheIndex]._active) ++cacheIndex; if (cacheIndex == _cache.size()) return nullptr; |