diff options
author | rubidium <rubidium@openttd.org> | 2010-08-28 19:45:56 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-28 19:45:56 +0000 |
commit | c862ab42c9fba0228834ecdf7394e51b18f88302 (patch) | |
tree | 1d1d69e4bd22b3acf59b0cecac5eec3fe061f43c /src/newgrf_object.cpp | |
parent | 7b16c7650bb5df437f7ba98acb1fdd917f4b8177 (diff) | |
download | openttd-c862ab42c9fba0228834ecdf7394e51b18f88302.tar.xz |
(svn r20671) -Add: feature F (not action F as written mistakenly in the previous message) support for the scenario editor
Diffstat (limited to 'src/newgrf_object.cpp')
-rw-r--r-- | src/newgrf_object.cpp | 4 |
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> |