summaryrefslogtreecommitdiff
path: root/src/saveload/object_sl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload/object_sl.cpp')
-rw-r--r--src/saveload/object_sl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/saveload/object_sl.cpp b/src/saveload/object_sl.cpp
index 037fc6b4d..4e8539793 100644
--- a/src/saveload/object_sl.cpp
+++ b/src/saveload/object_sl.cpp
@@ -24,6 +24,7 @@ static const SaveLoad _object_desc[] = {
SLE_VAR(Object, build_date, SLE_UINT32),
SLE_CONDVAR(Object, colour, SLE_UINT8, 148, SL_MAX_VERSION),
SLE_CONDVAR(Object, view, SLE_UINT8, 155, SL_MAX_VERSION),
+ SLE_CONDVAR(Object, type, SLE_UINT16, 186, SL_MAX_VERSION),
SLE_END()
};
@@ -56,8 +57,6 @@ static void Ptrs_OBJS()
if (IsSavegameVersionBefore(148) && !IsTileType(o->location.tile, MP_OBJECT)) {
/* Due to a small bug stale objects could remain. */
delete o;
- } else {
- Object::IncTypeCount(GetObjectType(o->location.tile));
}
}
}