journal: try to delete correctly the talking notes

This commit is contained in:
Laurent alonso
2020-12-24 09:04:57 +01:00
committed by Celtic Minstrel
parent 199dc92a88
commit 6ff481df11
3 changed files with 7 additions and 10 deletions

View File

@@ -395,7 +395,6 @@ void cParty::swap_pcs(size_t a, size_t b) {
bool cParty::save_talk(const std::string& who, const std::string& where, const std::string& str1, const std::string& str2){
if(talk_save.size() == talk_save.max_size()) return false; // This is extremely unlikely
cConvers talk;
talk.filled = true; // TODO: Remove this member
talk.who_said = who;
talk.in_town = where;
talk.the_str1 = str1;
@@ -1089,7 +1088,6 @@ void cParty::readFrom(std::istream& file){
bin >> std::ws;
getline(bin, note.the_str1);
getline(bin, note.the_str2);
note.filled=true;
talk_save.push_back(note);
} else if(cur == "JOB_BANK") {
int i;

View File

@@ -59,7 +59,6 @@ class cParty : public iLiving {
public:
class cConvers { // conversation; formerly talk_save_type
public:
bool filled = false;
std::string who_said, in_town, the_str1, the_str2, in_scen;
void import_legacy(legacy::talk_save_type old, const cScenario& scenario);