mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r13328) -Fix (r13327): Don't access an item when there isn't any
This commit is contained in:
parent
a8abdaec92
commit
bed7719967
@ -427,7 +427,7 @@ public:
|
|||||||
if (id_v >= this->vscroll.cap) return; // click out of bounds
|
if (id_v >= this->vscroll.cap) return; // click out of bounds
|
||||||
id_v += this->vscroll.pos;
|
id_v += this->vscroll.pos;
|
||||||
|
|
||||||
this->server = this->servers[id_v];
|
this->server = (id_v < this->servers.Length()) ? this->servers[id_v] : NULL;
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user