diff options
Diffstat (limited to 'engines/xeen/party.cpp')
-rw-r--r-- | engines/xeen/party.cpp | 4 |
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; |