aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2018-02-17 22:07:34 -0500
committerPaul Gilbert2018-02-17 22:07:34 -0500
commitb0377287172040461535095fcf9d8f893f0985b6 (patch)
treed0523f7ad4a329f888a6b3874055db8ae58aed24 /engines
parent9ce8d4f446a5b4b1e4c992d4830a7a5c4bafcc68 (diff)
downloadscummvm-rg350-b0377287172040461535095fcf9d8f893f0985b6.tar.gz
scummvm-rg350-b0377287172040461535095fcf9d8f893f0985b6.tar.bz2
scummvm-rg350-b0377287172040461535095fcf9d8f893f0985b6.zip
XEEN: Fix getting random item when searching beds
Diffstat (limited to 'engines')
-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