summaryrefslogtreecommitdiff
path: root/src/newgrf_object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_object.cpp')
-rw-r--r--src/newgrf_object.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newgrf_object.cpp b/src/newgrf_object.cpp
index c86bc62f1..2fe37db8e 100644
--- a/src/newgrf_object.cpp
+++ b/src/newgrf_object.cpp
@@ -69,6 +69,10 @@ void ResetObjects()
/* And add our originals. */
MemCpyT(_object_specs, _original_objects, lengthof(_original_objects));
+
+ for (uint16 i = 0; i < lengthof(_original_objects); i++) {
+ _object_specs[i].grf_prop.local_id = i;
+ }
}
template <typename Tspec, typename Tid, Tid Tmax>