aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/actor.cpp
diff options
context:
space:
mode:
authorThanasis Antoniou2019-09-05 13:13:21 +0300
committerThanasis Antoniou2019-09-05 13:17:53 +0300
commitac912a5023c83c4ac87a6e77c213f99d501cdd6b (patch)
tree96dd1b4ca982bfdee6551401b8b3c3ba247d58ae /engines/bladerunner/actor.cpp
parent541689eeb2f4ffd70ae7989e8313b2928de3ef11 (diff)
downloadscummvm-rg350-ac912a5023c83c4ac87a6e77c213f99d501cdd6b.tar.gz
scummvm-rg350-ac912a5023c83c4ac87a6e77c213f99d501cdd6b.tar.bz2
scummvm-rg350-ac912a5023c83c4ac87a6e77c213f99d501cdd6b.zip
BLADERUNNER: Revert previous changes in clues listing
Keep the important bug fix which was in KIASectionSuspects::populateAcquiredClues Some of the changes in the previous commit were due to confusing the role of the getClueIdByIndex method
Diffstat (limited to 'engines/bladerunner/actor.cpp')
-rw-r--r--engines/bladerunner/actor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/bladerunner/actor.cpp b/engines/bladerunner/actor.cpp
index e1ecefd8ae..7080b330a7 100644
--- a/engines/bladerunner/actor.cpp
+++ b/engines/bladerunner/actor.cpp
@@ -1254,7 +1254,7 @@ bool Actor::copyClues(int actorId) {
bool newCluesAcquired = false;
Actor *otherActor = _vm->_actors[actorId];
for (int i = 0; i < (int)_vm->_gameInfo->getClueCount(); i++) {
- int clueId = _clues->getClueIdByIndex(i);
+ int clueId = i;
if (hasClue(clueId) && !_clues->isPrivate(clueId) && otherActor->canAcquireClue(clueId) && !otherActor->hasClue(clueId)) {
int fromActorId = _id;
if (_id == BladeRunnerEngine::kActorVoiceOver) {