From 593890337ba7925d092ed68abe12ee0bc79332ae Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Thu, 20 Mar 2025 08:22:08 -0500 Subject: [PATCH] fixup! Give item: more sensible button selection --- src/game/boe.items.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/boe.items.cpp b/src/game/boe.items.cpp index 368d55f6..242d64df 100644 --- a/src/game/boe.items.cpp +++ b/src/game/boe.items.cpp @@ -958,7 +958,7 @@ short select_pc(eSelectPC mode, std::string title, bool allow_choose_all) { disabled_reason = "item too heavy"; if(false) // skip first line of fallthrough case eBuyStatus::NO_SPACE: - disabled_reason = "no inventory space"; + disabled_reason = "no item slot"; can_pick = false; break; default: @@ -968,7 +968,7 @@ short select_pc(eSelectPC mode, std::string title, bool allow_choose_all) { case eSelectPC::ONLY_LIVING_WITH_ITEM_SLOT: if(!univ.party[i].has_space()){ can_pick = false; - disabled_reason = "no inventory space"; + disabled_reason = "no item slot"; } BOOST_FALLTHROUGH; case eSelectPC::ONLY_LIVING: @@ -983,6 +983,7 @@ short select_pc(eSelectPC mode, std::string title, bool allow_choose_all) { default: break; } + selectPc["pc" + n].setText(univ.party[i].name); if(!can_pick) { selectPc["pick" + n].hide(); if(disabled_reason.empty()) @@ -991,7 +992,6 @@ short select_pc(eSelectPC mode, std::string title, bool allow_choose_all) { selectPc["pc" + n].appendText(": " + disabled_reason); } else { any_options = true; - selectPc["pc" + n].setText(univ.party[i].name); } }