boe.infodlg.cpp: try to correct a problem when displaying notes,

This commit is contained in:
ALONSO Laurent
2022-07-16 13:07:51 +02:00
committed by Celtic Minstrel
parent 17ad90ece1
commit 6b5cd30149

View File

@@ -479,17 +479,8 @@ static bool adventure_notes_event_filter(cDialog& me, std::string item_hit, eKey
}
for(short i = 0; i < 3; i++) {
std::string n = boost::lexical_cast<std::string>(i + 1);
if(univ.party.special_notes.size() > i) {
me["str" + n].setText(univ.party.special_notes[i].the_str);
me["del" + n].show();
}
else me["del" + n].hide();
}
// TODO: What's this second loop for?
for(short i = store_page_on * 3; i < (store_page_on * 3) + 3; i++) {
std::string n = boost::lexical_cast<std::string>(i + 1);
if(univ.party.special_notes.size() > i) {
me["str" + n].setText(univ.party.special_notes[i].the_str);
if(univ.party.special_notes.size() > store_page_on * 3+i) {
me["str" + n].setText(univ.party.special_notes[store_page_on * 3+i].the_str);
me["del" + n].show();
}
else {