summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r--src/misc_gui.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index bc5179f82..32a8ad48c 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -211,10 +211,11 @@ public:
tile_ss << "0x" << std::setfill('0') << std::setw(4) << std::hex << std::uppercase << tile; // 0x%.4X
std::string tile_str = tile_ss.str(); // Can't pass it directly to SetDParamStr as the string is only a temporary and would be destructed before the GetString call.
- SetDParam(0, TileX(tile));
- SetDParam(1, TileY(tile));
+ SetDParam(0, LayerX(tile));
+ SetDParam(1, LayerY(tile));
SetDParam(2, GetTileZ(tile));
- SetDParamStr(3, tile_str);
+ SetDParam(3, LayerIndex(tile));
+ SetDParamStr(4, tile_str);
this->landinfo_data.push_back(GetString(STR_LAND_AREA_INFORMATION_LANDINFO_COORDS));
/* Local authority */