Ensure stored PCs don't reference a party

This commit is contained in:
2016-08-15 02:06:46 -04:00
parent ac93dbe09f
commit 7b617702ff
5 changed files with 7 additions and 3 deletions

View File

@@ -319,7 +319,7 @@ bool load_party_v2(fs::path file_to_load, cUniverse& univ){
std::string fname = "save/pc~" + std::to_string(next_uid) + ".txt";
cPlayer* stored_pc = new cPlayer(univ.party);
stored_pc->readFrom(partyIn.getFile(fname));
univ.stored_pcs[next_uid] = stored_pc;
univ.stored_pcs[next_uid] = stored_pc->leave_party();
}
}