summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/saveload/waypoint_sl.cpp2
-rw-r--r--src/settings_gui.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/waypoint_sl.cpp b/src/saveload/waypoint_sl.cpp
index c424e5739..dccfb86aa 100644
--- a/src/saveload/waypoint_sl.cpp
+++ b/src/saveload/waypoint_sl.cpp
@@ -47,7 +47,7 @@ static void UpdateWaypointOrder(Order *o)
for (OldWaypoint *wp = _old_waypoints.Begin(); wp != _old_waypoints.End(); wp++) {
if (wp->index != o->GetDestination()) continue;
- o->SetDestination(wp->new_index);
+ o->SetDestination((DestinationID)wp->new_index);
return;
}
}
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 602ed2c0c..5578cc8cd 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -615,7 +615,7 @@ public:
if (x >= 10) {
/* Increase button clicked */
- val = min(val + sdb->interval, sdb->max);
+ val = min(val + sdb->interval, (int32)sdb->max);
this->clicked_increase = true;
} else {
/* Decrease button clicked */