(svn r26175) -Add: Log in desync output when persistent storage is discarded.

This commit is contained in:
frosch
2013-12-23 18:09:29 +00:00
parent eca86d1baf
commit 49852e3dac
9 changed files with 43 additions and 10 deletions

View File

@@ -98,7 +98,7 @@ static void Load_INDY()
if (IsSavegameVersionBefore(161) && !IsSavegameVersionBefore(76)) {
/* Store the old persistent storage. The GRFID will be added later. */
assert(PersistentStorage::CanAllocateItem());
i->psa = new PersistentStorage(0);
i->psa = new PersistentStorage(0, 0, 0);
memcpy(i->psa->storage, _old_ind_persistent_storage.storage, sizeof(i->psa->storage));
}
Industry::IncIndustryTypeCount(i->type);