diff options
author | Thanasis Antoniou | 2019-09-05 10:37:47 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-09-05 10:39:51 +0300 |
commit | 5941ab78584147a751602b4a90061899fb63e0b2 (patch) | |
tree | 32ca34f767fd4a9916730bac6ae09a1cf371904a /engines/bladerunner/actor_clues.cpp | |
parent | b04be6f9e1e50f93fb9a57471907d5789c93e120 (diff) | |
download | scummvm-rg350-5941ab78584147a751602b4a90061899fb63e0b2.tar.gz scummvm-rg350-5941ab78584147a751602b4a90061899fb63e0b2.tar.bz2 scummvm-rg350-5941ab78584147a751602b4a90061899fb63e0b2.zip |
BLADERUNNER: Fix displaying of clues in KIA
Fixes bug where clues with no type would appear in KIA sections
"End of Act 2" would appear in Sadik's and Clovis' suspect pages, and in Bradbury crime page, whereas Sadik's photo would not appear in Sadik's page.
Diffstat (limited to 'engines/bladerunner/actor_clues.cpp')
-rw-r--r-- | engines/bladerunner/actor_clues.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/bladerunner/actor_clues.cpp b/engines/bladerunner/actor_clues.cpp index 63dbbbf810..4946113713 100644 --- a/engines/bladerunner/actor_clues.cpp +++ b/engines/bladerunner/actor_clues.cpp @@ -39,7 +39,7 @@ ActorClues::ActorClues(BladeRunnerEngine *vm, int cluesLimit) { _maxCount = 0; switch (cluesLimit) { case 4: - _maxCount = _vm->_gameInfo->getClueCount(); + _maxCount = kClueCount; break; case 3: _maxCount = 100; @@ -318,6 +318,9 @@ int ActorClues::getCount() const { } int ActorClues::getClueIdByIndex(int index) const { + if (index < 0) { + return -1; + } return _clues[index].clueId; } |