try to save correctly SHOPSTOCK...
This commit is contained in:
@@ -732,7 +732,7 @@ void cParty::writeTo(std::ostream& file) const {
|
||||
file << "QUEST " << p.first << ' ' << p.second.status << ' ' << p.second.start << ' ' << p.second.source << '\n';
|
||||
for(auto p : store_limited_stock) {
|
||||
for(auto p2 : p.second) {
|
||||
file << "SHOPSTOCK " << p.first << p2.first << p2.second;
|
||||
file << "SHOPSTOCK " << p.first << ' ' << p2.first << ' ' << p2.second << '\n';
|
||||
}
|
||||
}
|
||||
for(auto iter = campaign_flags.begin(); iter != campaign_flags.end(); iter++){
|
||||
|
@@ -1350,6 +1350,7 @@ void cUniverse::enter_scenario(const std::string& name) {
|
||||
pop.which_town = 200;
|
||||
for(short i = 0; i < 10; i++)
|
||||
party.out_c[i].exists = false;
|
||||
party.store_limited_stock.clear();
|
||||
party.magic_store_items.clear();
|
||||
// TODO: Now uncertain if the journal should really persist
|
||||
// univ.party.journal.clear();
|
||||
|
Reference in New Issue
Block a user