diff options
author | terkhen <terkhen@openttd.org> | 2011-06-12 20:53:16 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2011-06-12 20:53:16 +0000 |
commit | 8ddb3941f71470611285f0bdda976d0d15e8b00c (patch) | |
tree | 4ba11653d79c91bfc772106e0292ef252bbc527f /src/newgrf_town.cpp | |
parent | 46d1a0621581a711aedeaa5d15628b4048fde43a (diff) | |
download | openttd-8ddb3941f71470611285f0bdda976d0d15e8b00c.tar.xz |
(svn r22571) -Add: [NewGRF] Show town persistent storage in the NewGRF debug GUI.
Diffstat (limited to 'src/newgrf_town.cpp')
-rw-r--r-- | src/newgrf_town.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_town.cpp b/src/newgrf_town.cpp index c177406ab..5f379766b 100644 --- a/src/newgrf_town.cpp +++ b/src/newgrf_town.cpp @@ -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); |