From 70f22e039e6df7080f4705614c4daaaa5838536c Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sat, 4 Jul 2015 00:39:32 -0400 Subject: [PATCH] Allow added items in character editor to exceed max weight, and give error if not enough room --- src/pcedit/pc.main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pcedit/pc.main.cpp b/src/pcedit/pc.main.cpp index 46648c4b..2130df98 100644 --- a/src/pcedit/pc.main.cpp +++ b/src/pcedit/pc.main.cpp @@ -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) {