mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r17364) -Fix (r17356): off by one when selecting a subsidy
This commit is contained in:
parent
a79be4de27
commit
123c44137a
@ -52,7 +52,6 @@ struct SubsidyListWindow : Window {
|
|||||||
if (!IsInsideMM(y, 0, this->vscroll.cap)) return;
|
if (!IsInsideMM(y, 0, this->vscroll.cap)) return;
|
||||||
|
|
||||||
y += this->vscroll.pos;
|
y += this->vscroll.pos;
|
||||||
y--; // Skip 'subsidies on offer' line
|
|
||||||
|
|
||||||
int num = 0;
|
int num = 0;
|
||||||
const Subsidy *s;
|
const Subsidy *s;
|
||||||
|
Loading…
Reference in New Issue
Block a user