Feature: [NewGRF] Increase size of persistent storage to 256.

This commit is contained in:
Michael Lutz
2018-08-13 23:44:49 +02:00
parent 6391d49277
commit 4b0b4e0643
6 changed files with 10 additions and 6 deletions

View File

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