mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r17580) -Fix (r17541): Fix signed/unsigned mismatch with MSVC 2008.
This commit is contained in:
parent
ca91a97826
commit
f7f2d1caa5
@ -300,10 +300,10 @@ public:
|
|||||||
GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, 0xD7);
|
GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, 0xD7);
|
||||||
|
|
||||||
uint y = r.top + WD_FRAMERECT_TOP;
|
uint y = r.top + WD_FRAMERECT_TOP;
|
||||||
int min_index = this->vscroll.GetPosition();
|
uint min_index = this->vscroll.GetPosition();
|
||||||
int max_index = min(min_index + this->vscroll.GetCapacity(), this->grfs.Length());
|
uint max_index = min(min_index + this->vscroll.GetCapacity(), this->grfs.Length());
|
||||||
|
|
||||||
for (int i = min_index; i < max_index; i++)
|
for (uint i = min_index; i < max_index; i++)
|
||||||
{
|
{
|
||||||
const GRFConfig *c = this->grfs[i];
|
const GRFConfig *c = this->grfs[i];
|
||||||
bool h = c == this->sel;
|
bool h = c == this->sel;
|
||||||
|
Loading…
Reference in New Issue
Block a user