Changeset - r21143:3ac255c72f24
[Not reviewed]
master
0 1 0
fonsinchen - 11 years ago 2014-01-05 11:28:31
fonsinchen@openttd.org
(svn r26228) -Fix: missing variable initialization
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/smallmap_gui.cpp
Show inline comments
 
@@ -712,12 +712,13 @@ void SmallMapWindow::SetZoomLevel(ZoomLe
 
	int new_index, cur_index, sub;
 
	Point tile;
 
	switch (change) {
 
		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:
 
		case ZLC_ZOOM_OUT:
 
			for (cur_index = MIN_ZOOM_INDEX; cur_index <= MAX_ZOOM_INDEX; cur_index++) {
 
				if (this->zoom == zoomlevels[cur_index]) break;
0 comments (0 inline, 0 general)