aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2018-03-19 19:51:11 +0100
committerEugene Sandulenko2018-03-19 19:51:11 +0100
commit98620a45c4df6ef459794a6294f3cedbec85b3b2 (patch)
treeea5188be4d37afd6a39774058ca896e16946a8cf /engines
parentbf798bdf80f7b8124f513e472ead6cf4ab67040e (diff)
downloadscummvm-rg350-98620a45c4df6ef459794a6294f3cedbec85b3b2.tar.gz
scummvm-rg350-98620a45c4df6ef459794a6294f3cedbec85b3b2.tar.bz2
scummvm-rg350-98620a45c4df6ef459794a6294f3cedbec85b3b2.zip
BLADERUNNER: Fix bug with path generator in GenericWalkerA actor
Diffstat (limited to 'engines')
-rw-r--r--engines/bladerunner/script/ai/generic_walker_a.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/bladerunner/script/ai/generic_walker_a.cpp b/engines/bladerunner/script/ai/generic_walker_a.cpp
index 7acea89c25..84f7febc05 100644
--- a/engines/bladerunner/script/ai/generic_walker_a.cpp
+++ b/engines/bladerunner/script/ai/generic_walker_a.cpp
@@ -459,7 +459,7 @@ bool AIScriptGenericWalkerA::preparePath() {
int waypointEnd = 0;
do {
waypointStart = Random_Query(167, 171);
- } while (waypointEnd == 168 || waypointEnd == 169);
+ } while (waypointStart == 168 || waypointStart == 169);
do {
waypointEnd = Random_Query(167, 171);
} while (waypointEnd == waypointStart || waypointEnd == 168 || waypointEnd == 169);