aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorChristoph Mallon2011-12-08 08:06:23 +0100
committerAlyssa Milburn2012-03-13 15:42:53 +0100
commitbc238a5ff38c5cb0ed563a3c56ade155b511bbde (patch)
tree8f1c3044d6c6a57f73fde7ec8289f0e889670a17 /engines
parent983cd2129496305bd68b12adde3117ef247135d1 (diff)
downloadscummvm-rg350-bc238a5ff38c5cb0ed563a3c56ade155b511bbde.tar.gz
scummvm-rg350-bc238a5ff38c5cb0ed563a3c56ade155b511bbde.tar.bz2
scummvm-rg350-bc238a5ff38c5cb0ed563a3c56ade155b511bbde.zip
JANITORIAL: Use appropriate type for loop counter.
Diffstat (limited to 'engines')
-rw-r--r--engines/saga/actor_path.cpp3
1 files changed, 1 insertions, 2 deletions
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);
}