Changeset - r10093:38c2c463ede1
[Not reviewed]
master
0 1 0
smatz - 16 years ago 2008-09-08 11:06:43
smatz@openttd.org
(svn r14274) -Fix (r10237): nonexistant order could be selected in the timetable window (causing SIGFPE)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/timetable_gui.cpp
Show inline comments
 
@@ -73,7 +73,7 @@ struct TimetableWindow : Window {
 

	
 
		sel += this->vscroll.pos;
 

	
 
		return (sel <= v->num_orders * 2 && sel >= 0) ? sel : INVALID_ORDER;
 
		return (sel < v->num_orders * 2 && sel >= 0) ? sel : INVALID_ORDER;
 
	}
 

	
 
	void OnPaint()
0 comments (0 inline, 0 general)