summaryrefslogtreecommitdiff
path: root/src/saveload/saveload.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload/saveload.h')
-rw-r--r--src/saveload/saveload.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/saveload/saveload.h b/src/saveload/saveload.h
index b6fc59c6e..8a2eeead2 100644
--- a/src/saveload/saveload.h
+++ b/src/saveload/saveload.h
@@ -483,14 +483,14 @@ static inline bool IsSavegameVersionBefore(uint16 major, byte minor = 0)
/**
* Checks if some version from/to combination falls within the range of the
* active savegame version.
- * @param version_from Lowest version number that falls within the range.
- * @param version_to Highest version number that falls within the range.
+ * @param version_from Inclusive savegame version lower bound.
+ * @param version_to Exclusive savegame version upper bound. SL_MAX_VERSION if no upper bound.
* @return Active savegame version falls within the given range.
*/
static inline bool SlIsObjectCurrentlyValid(uint16 version_from, uint16 version_to)
{
extern const uint16 SAVEGAME_VERSION;
- if (SAVEGAME_VERSION < version_from || SAVEGAME_VERSION > version_to) return false;
+ if (SAVEGAME_VERSION < version_from || SAVEGAME_VERSION >= version_to) return false;
return true;
}