summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 8d068e71e..d56726618 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -993,7 +993,7 @@ static void FindSubsidyPassengerRoute(FoundRoute *fr)
{
Town *from,*to;
- fr->distance = (uint)-1;
+ fr->distance = UINT_MAX;
fr->from = from = GetRandomTown();
if (from == NULL || from->population < 400) return;
@@ -1011,7 +1011,7 @@ static void FindSubsidyCargoRoute(FoundRoute *fr)
int trans, total;
CargoID cargo;
- fr->distance = (uint)-1;
+ fr->distance = UINT_MAX;
fr->from = i = GetRandomIndustry();
if (i == NULL) return;