From 9c4d3be5e9fff480ee44f152c211412b2633ecc8 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 16 Mar 2018 21:13:35 -0400 Subject: XEEN: Bought weapons shouldn't be equipped by default --- engines/xeen/dialogs/dialogs_items.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'engines/xeen/dialogs/dialogs_items.cpp') diff --git a/engines/xeen/dialogs/dialogs_items.cpp b/engines/xeen/dialogs/dialogs_items.cpp index 82eeb9f8dd..ab2269b2d7 100644 --- a/engines/xeen/dialogs/dialogs_items.cpp +++ b/engines/xeen/dialogs/dialogs_items.cpp @@ -840,9 +840,12 @@ int ItemsDialog::doItemOptions(Character &c, int actionIndex, int itemIndex, Ite } // Add entry to the end of the list - XeenItem &bsItem = c._items[category][itemIndex]; - _oldCharacter->_items[category][INV_ITEMS_TOTAL - 1] = bsItem; - bsItem.clear(); + XeenItem &srcItem = c._items[category][itemIndex]; + XeenItem &destItem = _oldCharacter->_items[category][INV_ITEMS_TOTAL - 1]; + destItem = srcItem; + destItem._frame = 0; + + srcItem.clear(); c._items[category].sort(); _oldCharacter->_items[category].sort(); } -- cgit v1.2.3