aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/party.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2019-09-01 10:14:28 -0700
committerPaul Gilbert2019-09-01 10:14:47 -0700
commit3996783c885d056b812b90e699f635685c2781dd (patch)
tree2cd9c6809467aff385bb2b92cf46d5828cb5eed0 /engines/xeen/party.cpp
parent537280c35a8a41f962a66a759499b8946ebfb164 (diff)
downloadscummvm-rg350-3996783c885d056b812b90e699f635685c2781dd.tar.gz
scummvm-rg350-3996783c885d056b812b90e699f635685c2781dd.tar.bz2
scummvm-rg350-3996783c885d056b812b90e699f635685c2781dd.zip
XEEN: Fix searches resulting in misc items
Diffstat (limited to 'engines/xeen/party.cpp')
-rw-r--r--engines/xeen/party.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp
index 6f9868b282..48100310c5 100644
--- a/engines/xeen/party.cpp
+++ b/engines/xeen/party.cpp
@@ -257,6 +257,8 @@ Party::Party(XeenEngine *vm) {
_fallMaze = 0;
_fallDamage = 0;
_dead = false;
+
+ Character::_itemType = 0;
}
void Party::synchronize(Common::Serializer &s) {
@@ -1359,7 +1361,7 @@ bool Party::giveTake(int takeMode, uint takeVal, int giveMode, uint giveVal, int
case 66: {
Character &tempChar = _itemsCharacter;
int idx = -1;
- if (scripts._itemType != 0) {
+ if (Character::_itemType != 0) {
for (idx = 0; idx < 10 && _treasure._misc[idx]._material; ++idx) {}
if (idx == 10)
return true;