aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/xeen/party.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp
index 37e6d46dc0..dcbc7def44 100644
--- a/engines/xeen/party.cpp
+++ b/engines/xeen/party.cpp
@@ -1264,8 +1264,8 @@ bool Party::giveTake(int takeMode, uint takeVal, int giveMode, uint giveVal, int
}
// Create the item and it's category
- ItemCategory itemCat = tempChar.makeItem(giveVal, 0, (idx == -1) ? 12 : 0);
- XeenItem &srcItem = _treasure[itemCat][0];
+ ItemCategory itemCat = tempChar.makeItem(giveVal, 0, (idx == -1) ? 0 : 12);
+ XeenItem &srcItem = tempChar._items[itemCat][0];
XeenItem *trItems = _treasure[itemCat];
// Check for a free treasure slot