Turn sparse arrays into sets.

This commit is contained in:
2015-02-06 15:37:55 -05:00
parent 7307fee425
commit c50e24b8e4
13 changed files with 46 additions and 67 deletions

View File

@@ -628,11 +628,9 @@ bool show_get_items(std::string titleText, std::vector<cItem*>& itemRefs, short
}
put_item_graphics(itemDialog, first_item, pc_getting, itemRefs);
if(univ.party.help_received[36] == 0) {
give_help(36,37,itemDialog);
}
void (*give_help)(short,short,cDialog&) = ::give_help;
itemDialog.run();
itemDialog.run(std::bind(give_help, 36, 37, _1));
return itemDialog.getResult<bool>();