summaryrefslogtreecommitdiff
path: root/src/saveload/afterload.cpp
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2019-04-21 22:56:35 +0100
committerPeterN <peter@fuzzle.org>2019-04-29 17:40:22 +0100
commitf20b75d712c377c1ec639080e38fddb93b83883c (patch)
treea7399a85cefb739863d47861b5e84bee3c1f64b1 /src/saveload/afterload.cpp
parent0e439aeab7a564c0673464f6a701463a60d46ed5 (diff)
downloadopenttd-f20b75d712c377c1ec639080e38fddb93b83883c.tar.xz
Codechange: Remove TownLayoutByte type
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r--src/saveload/afterload.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index b5095c521..5e7521d26 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -2110,7 +2110,7 @@ bool AfterLoadGame()
_settings_game.economy.town_layout = TL_BETTER_ROADS;
} else {
_settings_game.economy.allow_town_roads = true;
- _settings_game.economy.town_layout = _settings_game.economy.town_layout - 1;
+ _settings_game.economy.town_layout = static_cast<TownLayout>(_settings_game.economy.town_layout - 1);
}
/* Initialize layout of all towns. Older versions were using different
@@ -2129,7 +2129,7 @@ bool AfterLoadGame()
case 5: layout = 1; break;
case 0: layout = 2; break;
}
- t->layout = layout - 1;
+ t->layout = static_cast<TownLayout>(layout - 1);
}
}