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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/saveload/object_sl.cpp b/src/saveload/object_sl.cpp
index 0e36100c3..6218eea1e 100644
--- a/src/saveload/object_sl.cpp
+++ b/src/saveload/object_sl.cpp
@@ -11,6 +11,7 @@
#include "../stdafx.h"
#include "../object_base.h"
+#include "../object_map.h"
#include "saveload.h"
#include "newgrf_sl.h"
@@ -50,6 +51,7 @@ static void Ptrs_OBJS()
Object *o;
FOR_ALL_OBJECTS(o) {
SlObject(o, _object_desc);
+ Object::IncTypeCount(GetObjectType(o->location.tile));
}
}