simulacrum: try to make the selection's work

This commit is contained in:
ALONSO Laurent
2021-10-09 16:23:04 +02:00
committed by Celtic Minstrel
parent 09f847585f
commit 4885ead643

View File

@@ -2226,7 +2226,6 @@ bool pick_pc_name(short pc_num,cDialog* parent) {
}
mon_num_t pick_trapped_monst() {
short i = 0;
std::string sp;
cMonster get_monst;
@@ -2234,8 +2233,9 @@ mon_num_t pick_trapped_monst() {
cChoiceDlog soulCrystal("soul-crystal",{"cancel","pick1","pick2","pick3","pick4"});
short i = 0;
for(mon_num_t which : univ.party.imprisoned_monst) {
std::string n = std::to_string(i + 1);
std::string n = std::to_string(++i);
if(which == 0) {
soulCrystal->getControl("pick" + n).hide();
}