diff options
author | Paul Gilbert | 2015-05-01 14:22:35 -1000 |
---|---|---|
committer | Paul Gilbert | 2015-05-01 14:22:35 -1000 |
commit | a4662b4699286a948644a8018d343f96e28ee019 (patch) | |
tree | 4397c8e4890496dddae482131b4f5584990952ff /engines | |
parent | 093d7877e6656132ed136fb37559a4daf82cd985 (diff) | |
download | scummvm-rg350-a4662b4699286a948644a8018d343f96e28ee019.tar.gz scummvm-rg350-a4662b4699286a948644a8018d343f96e28ee019.tar.bz2 scummvm-rg350-a4662b4699286a948644a8018d343f96e28ee019.zip |
SHERLOCK: Fix getting Tarot cards
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sherlock/scene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/scene.cpp b/engines/sherlock/scene.cpp index cd913f8515..497a8d551c 100644 --- a/engines/sherlock/scene.cpp +++ b/engines/sherlock/scene.cpp @@ -559,7 +559,7 @@ void Scene::checkSceneFlags(bool flag) { */ void Scene::checkInventory() { for (uint shapeIdx = 0; shapeIdx < _bgShapes.size(); ++shapeIdx) { - for (uint invIdx = 0; invIdx < _vm->_inventory->size(); ++invIdx) { + for (uint invIdx = 0; invIdx < _vm->_inventory->_holdings; ++invIdx) { if (scumm_stricmp(_bgShapes[shapeIdx]._name.c_str(), (*_vm->_inventory)[invIdx]._name.c_str()) == 0) { _bgShapes[shapeIdx]._type = INVALID; |