mirror of https://github.com/OpenTTD/OpenTTD
Codechange: Use vector for town PSA storage.
parent
177e2ebf80
commit
8b8cd9ae2d
|
@ -269,7 +269,7 @@ static const SaveLoad _town_desc[] = {
|
|||
SLE_CONDVAR(Town, larger_town, SLE_BOOL, SLV_56, SL_MAX_VERSION),
|
||||
SLE_CONDVAR(Town, layout, SLE_UINT8, SLV_113, SL_MAX_VERSION),
|
||||
|
||||
SLE_CONDREFLIST(Town, psa_list, REF_STORAGE, SLV_161, SL_MAX_VERSION),
|
||||
SLE_CONDREFVECTOR(Town, psa_list, REF_STORAGE, SLV_161, SL_MAX_VERSION),
|
||||
|
||||
SLEG_CONDSTRUCTLIST("supplied", SlTownSupplied, SLV_165, SL_MAX_VERSION),
|
||||
SLEG_CONDSTRUCTLIST("received", SlTownReceived, SLV_165, SL_MAX_VERSION),
|
||||
|
|
|
@ -103,7 +103,7 @@ struct Town : TownPool::PoolItem<&_town_pool> {
|
|||
|
||||
bool show_zone; ///< NOSAVE: mark town to show the local authority zone in the viewports
|
||||
|
||||
std::list<PersistentStorage *> psa_list;
|
||||
std::vector<PersistentStorage *> psa_list;
|
||||
|
||||
/**
|
||||
* Creates a new town.
|
||||
|
|
Loading…
Reference in New Issue