(svn r22571) -Add: [NewGRF] Show town persistent storage in the NewGRF debug GUI.

This commit is contained in:
terkhen
2011-06-12 20:53:16 +00:00
parent 46d1a06215
commit 8ddb3941f7
3 changed files with 33 additions and 5 deletions

View File

@@ -158,6 +158,7 @@ void TownStorePSA(Town *t, const GRFFile *caller_grffile, uint pos, int32 value)
}
/* Create a new storage. */
assert(PersistentStorage::CanAllocateItem());
PersistentStorage *psa = new PersistentStorage(grfid);
psa->StoreValue(pos, value);
t->psa_list.push_back(psa);