summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 01a71375..3da94ea8 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -703,11 +703,11 @@ Path Map::findPixelPath(int startPixelX, int startPixelY, int endPixelX,
return myPath;
}
-static int const basicCost = 100;
-
Path Map::findPath(int startX, int startY, int destX, int destY,
unsigned char walkmask, int maxCost)
{
+ static int const basicCost = 100;
+
// Path to be built up (empty by default)
Path path;