aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-02 18:56:03 -0400
committerPaul Gilbert2016-09-02 18:56:03 -0400
commitb6e3c18898ac34caa3acf2bbe57c9c631a4c5407 (patch)
tree9aa869367a9d692528b564739a9663c33f28c938 /engines/titanic
parentb1105a6686215a965e8580af84d16d7732ce5b49 (diff)
downloadscummvm-rg350-b6e3c18898ac34caa3acf2bbe57c9c631a4c5407.tar.gz
scummvm-rg350-b6e3c18898ac34caa3acf2bbe57c9c631a4c5407.tar.bz2
scummvm-rg350-b6e3c18898ac34caa3acf2bbe57c9c631a4c5407.zip
TITANIC: Fix cahce scan in CDialogueFile::addToCache
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/true_talk/dialogue_file.cpp2
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;