(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 35ecb9db3f
commit 74916a103e
9 changed files with 43 additions and 10 deletions

View File

@@ -527,7 +527,7 @@ static void Load_STNN()
if (IsSavegameVersionBefore(161) && !IsSavegameVersionBefore(145) && st->facilities & FACIL_AIRPORT) {
/* Store the old persistent storage. The GRFID will be added later. */
assert(PersistentStorage::CanAllocateItem());
st->airport.psa = new PersistentStorage(0);
st->airport.psa = new PersistentStorage(0, 0, 0);
memcpy(st->airport.psa->storage, _old_st_persistent_storage.storage, sizeof(st->airport.psa->storage));
}