summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2014-01-05 11:28:31 +0000
committerfonsinchen <fonsinchen@openttd.org>2014-01-05 11:28:31 +0000
commit014813141daffb2e920b763f83dfcace0d5613fa (patch)
tree8218a776fa8f497528a72845ba46ec6aeecccbb6 /src
parent1aa26b30c71236b01fcdfbca8ab2099f1608b4ab (diff)
downloadopenttd-014813141daffb2e920b763f83dfcace0d5613fa.tar.xz
(svn r26228) -Fix: missing variable initialization
Diffstat (limited to 'src')
-rw-r--r--src/smallmap_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index b1e3370a9..9e91dc632 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -715,6 +715,7 @@ void SmallMapWindow::SetZoomLevel(ZoomLevelChange change, const Point *zoom_pt)
case ZLC_INITIALIZE:
cur_index = - 1; // Definitely different from new_index.
new_index = MIN_ZOOM_INDEX;
+ tile.x = tile.y = 0;
break;
case ZLC_ZOOM_IN: