@@ -490,13 +490,13 @@ static void DrawTile_Trees(TileInfo *ti)
te[i].y = d->y;
s++;
d++;
}
/* draw them in a sorted way */
byte z = ti->z + GetSlopeMaxPixelZ(ti->tileh) / 2;
int z = ti->z + GetSlopeMaxPixelZ(ti->tileh) / 2;
for (; trees > 0; trees--) {
uint min = te[0].x + te[0].y;
uint mi = 0;
for (uint i = 1; i < trees; i++) {