diff options
author | frosch <frosch@openttd.org> | 2013-12-23 18:09:29 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-12-23 18:09:29 +0000 |
commit | 49852e3dac0e59377b440a23c514608e714846f2 (patch) | |
tree | ba094a330655085516bd75bd560973ae29cd64b3 /src/newgrf_industries.cpp | |
parent | eca86d1baf5f374d25dcc9bf0ff2bad328bdffab (diff) | |
download | openttd-49852e3dac0e59377b440a23c514608e714846f2.tar.xz |
(svn r26175) -Add: Log in desync output when persistent storage is discarded.
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r-- | src/newgrf_industries.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index c9ae6168b..ffc677d02 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -399,7 +399,7 @@ static uint32 GetCountAndDistanceOfClosestInstance(byte param_setID, byte layout const IndustrySpec *indsp = GetIndustrySpec(this->industry->type); uint32 grfid = (indsp->grf_prop.grffile != NULL) ? indsp->grf_prop.grffile->grfid : 0; assert(PersistentStorage::CanAllocateItem()); - this->industry->psa = new PersistentStorage(grfid); + this->industry->psa = new PersistentStorage(grfid, GSF_INDUSTRIES, this->industry->location.tile); } this->industry->psa->StoreValue(pos, value); |