[Scummvm-git-logs] scummvm master -> b0377287172040461535095fcf9d8f893f0985b6
dreammaster
dreammaster at scummvm.org
Sun Feb 18 04:07:32 CET 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b037728717 XEEN: Fix getting random item when searching beds
Commit: b0377287172040461535095fcf9d8f893f0985b6
https://github.com/scummvm/scummvm/commit/b0377287172040461535095fcf9d8f893f0985b6
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-02-17T22:07:34-05:00
Commit Message:
XEEN: Fix getting random item when searching beds
Changed paths:
engines/xeen/party.cpp
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp
index 37e6d46..dcbc7de 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
More information about the Scummvm-git-logs
mailing list