summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index df49b2eb9..07d28b164 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -892,7 +892,7 @@ Path Map::findPath(const int startX, const int startY,
// The basic walking cost of a tile.
static const int basicCost = 100;
const int basicCost2 = 100 * 362 / 256;
- const float basicCostF = 100 * 362 / 256;
+ const float basicCostF = 100.0 * 362 / 256;
// Path to be built up (empty by default)
Path path;