diff options
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/saveload.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/saveload/saveload.h b/src/saveload/saveload.h index dfd687f35..8456da415 100644 --- a/src/saveload/saveload.h +++ b/src/saveload/saveload.h @@ -956,9 +956,7 @@ static inline bool IsSavegameVersionUntil(SaveLoadVersion major) static inline bool SlIsObjectCurrentlyValid(SaveLoadVersion version_from, SaveLoadVersion version_to) { extern const SaveLoadVersion SAVEGAME_VERSION; - if (SAVEGAME_VERSION < version_from || SAVEGAME_VERSION >= version_to) return false; - - return true; + return version_from <= SAVEGAME_VERSION && SAVEGAME_VERSION < version_to; } /** |