Implement a dialog to edit shops in the scenario editor

This commit is contained in:
2015-02-04 13:55:22 -05:00
parent 24a128b5b8
commit 36491c818c
21 changed files with 631 additions and 20 deletions

View File

@@ -218,7 +218,7 @@ bool load_scenario_v1(fs::path file_to_load, cScenario& scenario){
if(info.type == eShopItemType::ITEM) {
int end = info.first + info.count;
end = min(end, scenario.scen_items.size());
shop.addItems(scenario.scen_items.begin() + info.first, scenario.scen_items.begin() + end, cShop::INFINITE);
shop.addItems(info.first, scenario.scen_items.begin() + info.first, scenario.scen_items.begin() + end, cShop::INFINITE);
} else {
int max = 62;
if(info.type == eShopItemType::ALCHEMY)