summaryrefslogtreecommitdiff
path: root/src/gamelog.cpp
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2019-01-29 00:56:28 +0000
committerPeterN <peter@fuzzle.org>2019-02-02 21:39:06 +0000
commit0f37a683a2360c7cb3d56fc828b96d7ee7e997f0 (patch)
tree77ed348a0142cf9bc3b03127de415eaa9f1f500f /src/gamelog.cpp
parent9de12521ecec338160c37920e65fd02c0c742bef (diff)
downloadopenttd-0f37a683a2360c7cb3d56fc828b96d7ee7e997f0.tar.xz
Codechange: Additional type safety for saveload version variables.
Diffstat (limited to 'src/gamelog.cpp')
-rw-r--r--src/gamelog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gamelog.cpp b/src/gamelog.cpp
index 621117f01..05653910d 100644
--- a/src/gamelog.cpp
+++ b/src/gamelog.cpp
@@ -23,13 +23,13 @@
#include "safeguards.h"
-extern const uint16 SAVEGAME_VERSION; ///< current savegame version
+extern const SaveLoadVersion SAVEGAME_VERSION; ///< current savegame version
extern SavegameType _savegame_type; ///< type of savegame we are loading
-extern uint32 _ttdp_version; ///< version of TTDP savegame (if applicable)
-extern uint16 _sl_version; ///< the major savegame version identifier
-extern byte _sl_minor_version; ///< the minor savegame version, DO NOT USE!
+extern uint32 _ttdp_version; ///< version of TTDP savegame (if applicable)
+extern SaveLoadVersion _sl_version; ///< the major savegame version identifier
+extern byte _sl_minor_version; ///< the minor savegame version, DO NOT USE!
static GamelogActionType _gamelog_action_type = GLAT_NONE; ///< action to record if anything changes