From bc238a5ff38c5cb0ed563a3c56ade155b511bbde Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Thu, 8 Dec 2011 08:06:23 +0100 Subject: JANITORIAL: Use appropriate type for loop counter. --- engines/saga/actor_path.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/saga/actor_path.cpp b/engines/saga/actor_path.cpp index 3e10aba6b6..0fb072b201 100644 --- a/engines/saga/actor_path.cpp +++ b/engines/saga/actor_path.cpp @@ -223,7 +223,6 @@ int Actor::fillPathArray(const Point &fromPoint, const Point &toPoint, Point &be int currentRating; Point bestPath; int pointCounter; - int startDirection; const PathDirectionData *samplePathDirection; Point nextPoint; int directionCount; @@ -235,7 +234,7 @@ int Actor::fillPathArray(const Point &fromPoint, const Point &toPoint, Point &be bestRating = quickDistance(fromPoint, toPoint, compressX); bestPath = fromPoint; - for (startDirection = 0; startDirection < 4; startDirection++) { + for (int8 startDirection = 0; startDirection < 4; startDirection++) { PathDirectionData tmp = { startDirection, fromPoint.x, fromPoint.y }; pathDirectionQueue.push_back(tmp); } -- cgit v1.2.3