Codechange: use int32_t instead of uint16_t for scroll bar position/size/capacity
This commit is contained in:
@@ -600,8 +600,8 @@ private:
|
||||
*/
|
||||
VehicleOrderID GetOrderFromPt(int y)
|
||||
{
|
||||
int sel = this->vscroll->GetScrolledRowFromWidget(y, this, WID_O_ORDER_LIST, WidgetDimensions::scaled.framerect.top);
|
||||
if (sel == INT_MAX) return INVALID_VEH_ORDER_ID;
|
||||
int32_t sel = this->vscroll->GetScrolledRowFromWidget(y, this, WID_O_ORDER_LIST, WidgetDimensions::scaled.framerect.top);
|
||||
if (sel == INT32_MAX) return INVALID_VEH_ORDER_ID;
|
||||
/* One past the orders is the 'End of Orders' line. */
|
||||
assert(IsInsideBS(sel, 0, vehicle->GetNumOrders() + 1));
|
||||
return sel;
|
||||
|
Reference in New Issue
Block a user