Don't cancel adding a special shop entry if the node hasn't been set

(The designer may want to add the entry and then later come back and create the node.)
This commit is contained in:
2017-02-10 12:13:46 -05:00
parent e1ca44f417
commit 2b8ff52992

View File

@@ -2412,8 +2412,6 @@ static bool add_shop_entry(cDialog& me, std::string type, cShop& shop, size_t wh
cItem item('spec');
size_t amount = 0;
edit_shop_special(me, item, amount);
if(item.item_level < 0)
return true;
shop.addSpecial(item.full_name, item.desc, item.graphic_num, item.item_level, item.value, amount);
} else if(type == "class") {
int n = get_monst_abil_num("Which special class?", 0, 100, me);