Fix buttons in PC info dialog always showing info for the first PC

This commit is contained in:
2015-06-24 01:43:54 -04:00
parent 2934585e21
commit 8670455f2f

View File

@@ -628,7 +628,7 @@ void give_pc_info(short pc_num) {
cDialog pcInfo("pc-info");
pcInfo.attachClickHandlers(std::bind(give_pc_info_event_filter, _1, _2, std::ref(pc_num)), {"done", "left", "right"});
pcInfo.attachClickHandlers(give_pc_extra_info, {"seemage", "seepriest", "trait", "alch"});
pcInfo.attachClickHandlers(std::bind(give_pc_extra_info, _1, _2, std::ref(pc_num)), {"seemage", "seepriest", "trait", "alch"});
for(i = 0; i < 19; i++) {
std::string lbl= "lbl" + boost::lexical_cast<std::string>(i + 1);