1
0
Fork 0

Codechange: Use vector for town PSA storage.

pull/13078/head
Peter Nelson 2024-11-14 18:17:06 +00:00
parent cfe717a019
commit c8c9788407
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
2 changed files with 2 additions and 2 deletions

View File

@ -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),

View File

@ -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.