diff options
author | Paul Gilbert | 2019-09-01 10:14:28 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-09-01 10:14:47 -0700 |
commit | 3996783c885d056b812b90e699f635685c2781dd (patch) | |
tree | 2cd9c6809467aff385bb2b92cf46d5828cb5eed0 /engines/xeen/scripts.cpp | |
parent | 537280c35a8a41f962a66a759499b8946ebfb164 (diff) | |
download | scummvm-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/scripts.cpp')
-rw-r--r-- | engines/xeen/scripts.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index 81af063f2f..a781086238 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -115,7 +115,6 @@ bool MirrorEntry::synchronize(Common::SeekableReadStream &s) { Scripts::Scripts(XeenEngine *vm) : _vm(vm) { _whoWill = 0; - _itemType = 0; _treasureItems = 0; _lineNum = 0; _charIndex = 0; @@ -144,7 +143,6 @@ int Scripts::checkEvents() { int ccNum = files._ccNum; _refreshIcons = false; - _itemType = 0; _scriptExecuted = false; _dirFlag = false; _whoWill = 0; @@ -1313,7 +1311,7 @@ bool Scripts::cmdGiveEnchanted(ParamsIterator ¶ms) { } bool Scripts::cmdItemType(ParamsIterator ¶ms) { - _itemType = params.readByte(); + Character::_itemType = params.readByte(); return true; } |