Allow added items in character editor to exceed max weight,

and give error if not enough room
This commit is contained in:
2015-07-04 00:39:32 -04:00
parent a64db5f15f
commit 70f22e039e

View File

@@ -322,7 +322,8 @@ void handle_item_menu(int item_hit) {
cItem store_i;
store_i = univ.scenario.scen_items[item_hit];
store_i.ident = true;
univ.party[current_active_pc].give_item(store_i,false);
if(!univ.party[current_active_pc].give_item(store_i,GIVE_ALLOW_OVERLOAD))
giveError("Sorry, that PC has no free inventory slots left! You'll have to either drop something or give it to a different PC.");
}
bool verify_restore_quit(std::string dlog) {