diff options
author | terkhen <terkhen@openttd.org> | 2011-06-12 20:47:45 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2011-06-12 20:47:45 +0000 |
commit | 00e5c1df18449992cc974b99c61a44d1385bf4a7 (patch) | |
tree | 7433db92049848236fe05f18b99d6f80c99442c6 /src/industry.h | |
parent | 9f55abf51aac0f408e60d905fb2ac1b8a1405bb9 (diff) | |
download | openttd-00e5c1df18449992cc974b99c61a44d1385bf4a7.tar.xz |
(svn r22567) -Codechange: Store persistent storages inside a pool.
Diffstat (limited to 'src/industry.h')
-rw-r--r-- | src/industry.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/industry.h b/src/industry.h index ba8c06ed5..d11b86443 100644 --- a/src/industry.h +++ b/src/industry.h @@ -38,8 +38,6 @@ enum ProductionLevels { * Defines the internal data of a functional industry. */ struct Industry : IndustryPool::PoolItem<&_industry_pool> { - typedef PersistentStorageArray<int32, 16> PersistentStorage; - TileArea location; ///< Location of the industry Town *town; ///< Nearest town CargoID produced_cargo[2]; ///< 2 production cargo slots @@ -72,7 +70,7 @@ struct Industry : IndustryPool::PoolItem<&_industry_pool> { byte random_triggers; ///< Triggers for the random uint16 random; ///< Random value used for randomisation of all kinds of things - PersistentStorage psa; ///< Persistent storage for NewGRF industries. + PersistentStorage *psa; ///< Persistent storage for NewGRF industries. Industry(TileIndex tile = INVALID_TILE) : location(tile, 0, 0) {} ~Industry(); |