diff options
author | Arnaud Boutonné | 2010-11-11 23:04:04 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2010-11-11 23:04:04 +0000 |
commit | a0199df818a90fcd142ef7d0adbc3bbda98003ac (patch) | |
tree | 6233a08e2bc5146387bd7728ab4339df6ac6c656 /engines/hugo/inventory.cpp | |
parent | a65ab98726442b0e207c2466b238535bb2a6b016 (diff) | |
download | scummvm-rg350-a0199df818a90fcd142ef7d0adbc3bbda98003ac.tar.gz scummvm-rg350-a0199df818a90fcd142ef7d0adbc3bbda98003ac.tar.bz2 scummvm-rg350-a0199df818a90fcd142ef7d0adbc3bbda98003ac.zip |
HUGO: Cleanup, move several functions and variables to the object class
svn-id: r54212
Diffstat (limited to 'engines/hugo/inventory.cpp')
-rw-r--r-- | engines/hugo/inventory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hugo/inventory.cpp b/engines/hugo/inventory.cpp index 74ab32c34f..19aa69c1fa 100644 --- a/engines/hugo/inventory.cpp +++ b/engines/hugo/inventory.cpp @@ -153,7 +153,7 @@ int16 InventoryHandler::processInventory(invact_t action, ...) { if (objId == -1 && i < displayNumb) { // Find objid by counting # carried objects == i+1 int16 j; - for (j = 0, i++; i > 0 && j < _vm->_numObj; j++) { + for (j = 0, i++; i > 0 && j < _vm->_object->_numObj; j++) { if (_vm->_object->isCarried(j)) { if (--i == 0) objId = j; |