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

@@ -538,7 +538,7 @@ static void Load_STNN()
/* Store the old persistent storage. The GRFID will be added later. */
assert(PersistentStorage::CanAllocateItem());
st->airport.psa = new PersistentStorage(0, 0, 0);
memcpy(st->airport.psa->storage, _old_st_persistent_storage.storage, sizeof(st->airport.psa->storage));
memcpy(st->airport.psa->storage, _old_st_persistent_storage.storage, sizeof(_old_st_persistent_storage.storage));
}
for (CargoID i = 0; i < num_cargo; i++) {