1
0
Fork 0

(svn r14274) -Fix (r10237): nonexistant order could be selected in the timetable window (causing SIGFPE)

release/0.7
smatz 2008-09-08 11:06:43 +00:00
parent 250e4476ba
commit db7c2b97f8
1 changed files with 1 additions and 1 deletions

View File

@ -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()