From 98620a45c4df6ef459794a6294f3cedbec85b3b2 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 19 Mar 2018 19:51:11 +0100 Subject: BLADERUNNER: Fix bug with path generator in GenericWalkerA actor --- engines/bladerunner/script/ai/generic_walker_a.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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); -- cgit v1.2.3