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