summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-26 14:47:45 +0000
committerrubidium <rubidium@openttd.org>2013-11-26 14:47:45 +0000
commit982fcb7aabc6ee0261e6ceebe714e7c2e5b99209 (patch)
tree1fa9c3ad7715f0edc9e490f5bf737e1267c32841 /src
parent5e3aa728552fce5cd2ae8a544881c722778d01d2 (diff)
downloadopenttd-982fcb7aabc6ee0261e6ceebe714e7c2e5b99209.tar.xz
(svn r26125) -Fix: make sure the tile area's variables are always properly initialised
Diffstat (limited to 'src')
-rw-r--r--src/tilearea_type.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tilearea_type.h b/src/tilearea_type.h
index 62d3d75df..7fabc50c4 100644
--- a/src/tilearea_type.h
+++ b/src/tilearea_type.h
@@ -20,16 +20,13 @@ struct TileArea {
uint16 w; ///< The width of the area
uint16 h; ///< The height of the area
- /** Just construct this tile area */
- TileArea() {}
-
/**
* Construct this tile area with some set values
* @param tile the base tile
* @param w the width
* @param h the height
*/
- TileArea(TileIndex tile, uint8 w, uint8 h) : tile(tile), w(w), h(h) {}
+ TileArea(TileIndex tile = INVALID_TILE, uint8 w = 0, uint8 h = 0) : tile(tile), w(w), h(h) {}
TileArea(TileIndex start, TileIndex end);