summaryrefslogtreecommitdiff
path: root/src/newgrf_town.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-06-12 20:53:16 +0000
committerterkhen <terkhen@openttd.org>2011-06-12 20:53:16 +0000
commit8ddb3941f71470611285f0bdda976d0d15e8b00c (patch)
tree4ba11653d79c91bfc772106e0292ef252bbc527f /src/newgrf_town.cpp
parent46d1a0621581a711aedeaa5d15628b4048fde43a (diff)
downloadopenttd-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.cpp1
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);