mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-22 21:19:27 +01:00
(svn r14274) -Fix (r10237): nonexistant order could be selected in the timetable window (causing SIGFPE)
This commit is contained in:
parent
250e4476ba
commit
db7c2b97f8
@ -73,7 +73,7 @@ struct TimetableWindow : Window {
|
|||||||
|
|
||||||
sel += this->vscroll.pos;
|
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()
|
void OnPaint()
|
||||||
|
Loading…
Reference in New Issue
Block a user