summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index a85c5da92..b03f990f0 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -844,9 +844,9 @@ static void StartScenario()
* @param newgm switch to this mode of loading fails due to some unknown error
* @param subdir default directory to look for filename, set to 0 if not needed
*/
-bool SafeSaveOrLoad(const char *filename, int mode, int newgm, Subdirectory subdir)
+bool SafeSaveOrLoad(const char *filename, int mode, GameMode newgm, Subdirectory subdir)
{
- byte ogm = _game_mode;
+ GameMode ogm = _game_mode;
_game_mode = newgm;
assert(mode == SL_LOAD || mode == SL_OLD_LOAD);