From 5c8aa6ee91ed9342b991827d0a93bbc32f1bbb38 Mon Sep 17 00:00:00 2001 From: Robert Špalek Date: Sun, 8 Nov 2009 06:16:25 +0000 Subject: Fixed mistake with two inner loop caused by not clearing the path. Also, optimize play() and stop() svn-id: r45746 --- engines/draci/walking.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/draci/walking.cpp') diff --git a/engines/draci/walking.cpp b/engines/draci/walking.cpp index a60398029c..f9e29da881 100644 --- a/engines/draci/walking.cpp +++ b/engines/draci/walking.cpp @@ -650,6 +650,7 @@ bool WalkingState::walkOnNextEdge() { } else { // Otherwise we are done. continueWalking() will return false next time. debugC(2, kDraciWalkingDebugLevel, "We have walked the whole path"); + _path.clear(); return false; } } -- cgit v1.2.3