From 9de12521ecec338160c37920e65fd02c0c742bef Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sat, 26 Jan 2019 01:48:40 +0000 Subject: Codechange: Convert saveload numbers to enum values. (This was mostly achieved with a few in-place regexes) --- src/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/settings.cpp') diff --git a/src/settings.cpp b/src/settings.cpp index d16cff7a1..41d3e2809 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1377,7 +1377,7 @@ static void PrepareOldDiffCustom() */ static void HandleOldDiffCustom(bool savegame) { - uint options_to_load = GAME_DIFFICULTY_NUM - ((savegame && IsSavegameVersionBefore(4)) ? 1 : 0); + uint options_to_load = GAME_DIFFICULTY_NUM - ((savegame && IsSavegameVersionBefore(SLV_4)) ? 1 : 0); if (!savegame) { /* If we did read to old_diff_custom, then at least one value must be non 0. */ -- cgit v1.2.3-54-g00ecf