summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-11-22 19:33:29 +0000
committertruelight <truelight@openttd.org>2005-11-22 19:33:29 +0000
commit898bb915ac6ac2be3d2ea112e536f7ea602baec4 (patch)
tree8f15e8f51a08918d4f10f865ca89248468c85aab /misc.c
parente4cb8ed4570f53fc26367371e8d680882f0e70e6 (diff)
downloadopenttd-898bb915ac6ac2be3d2ea112e536f7ea602baec4.tar.xz
(svn r3227) -Codechange: [Savegame] removed 'minor' version, and renamed 'major' version to just: version.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 25db8cc63..36c9deae3 100644
--- a/misc.c
+++ b/misc.c
@@ -811,7 +811,7 @@ static void Load_MAP2(void)
SlArray(buf, lengthof(buf),
/* In those versions the m2 was 8 bits */
- _sl_version < 5 ? SLE_FILE_U8 | SLE_VAR_U16 : SLE_UINT16
+ CheckSavegameVersion(5) ? SLE_FILE_U8 | SLE_VAR_U16 : SLE_UINT16
);
for (j = 0; j != lengthof(buf); j++) _m[i++].m2 = buf[j];
}