From 4885ead643c136f3acde8fd086373743c248f9ce Mon Sep 17 00:00:00 2001 From: ALONSO Laurent Date: Sat, 9 Oct 2021 16:23:04 +0200 Subject: [PATCH] simulacrum: try to make the selection's work --- src/game/boe.party.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/boe.party.cpp b/src/game/boe.party.cpp index 30cc9f04..3ee62a19 100644 --- a/src/game/boe.party.cpp +++ b/src/game/boe.party.cpp @@ -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(); }