mirror of https://github.com/OpenTTD/OpenTTD.git
Merge a66b4f33d1
into 440a633fcc
This commit is contained in:
commit
cfb9e55ab1
|
@ -839,7 +839,7 @@ public:
|
|||
*/
|
||||
void ScrollTowards(size_type position)
|
||||
{
|
||||
if (position < this->GetPosition()) {
|
||||
if (position <= this->GetPosition()) {
|
||||
/* scroll up to the item */
|
||||
this->SetPosition(position);
|
||||
} else if (position >= this->GetPosition() + this->GetCapacity()) {
|
||||
|
|
Loading…
Reference in New Issue