1
0
Fork 0

Codechange: Use vector for town PSA storage.

pull/13127/head
Peter Nelson 2024-11-14 18:17:06 +00:00 committed by Peter Nelson
parent 177e2ebf80
commit 8b8cd9ae2d
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.