diff options
author | Eugene Sandulenko | 2018-03-19 19:51:11 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-03-19 19:51:11 +0100 |
commit | 98620a45c4df6ef459794a6294f3cedbec85b3b2 (patch) | |
tree | ea5188be4d37afd6a39774058ca896e16946a8cf | |
parent | bf798bdf80f7b8124f513e472ead6cf4ab67040e (diff) | |
download | scummvm-rg350-98620a45c4df6ef459794a6294f3cedbec85b3b2.tar.gz scummvm-rg350-98620a45c4df6ef459794a6294f3cedbec85b3b2.tar.bz2 scummvm-rg350-98620a45c4df6ef459794a6294f3cedbec85b3b2.zip |
BLADERUNNER: Fix bug with path generator in GenericWalkerA actor
-rw-r--r-- | engines/bladerunner/script/ai/generic_walker_a.cpp | 2 |
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); |