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/parser.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/parser.cpp')
| -rw-r--r-- | engines/hugo/parser.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/engines/hugo/parser.cpp b/engines/hugo/parser.cpp index 22f1102b08..ff182a1aee 100644 --- a/engines/hugo/parser.cpp +++ b/engines/hugo/parser.cpp @@ -256,7 +256,7 @@ void Parser::showDosInventory() {  	static const char *blanks = "                                        ";  	uint16 index = 0, len1 = 0, len2 = 0; -	for (int i = 0; i < _vm->_numObj; i++) {        // Find widths of 2 columns +	for (int i = 0; i < _vm->_object->_numObj; i++) { // Find widths of 2 columns  		if (_vm->_object->isCarried(i)) {  			uint16 len = strlen(_vm->_arrayNouns[_vm->_object->_objects[i].nounIndex][1]);  			if (index++ & 1)                        // Right hand column @@ -274,7 +274,7 @@ void Parser::showDosInventory() {  	strncat(buffer, blanks, (len1 + len2 - strlen(_vm->_textParser[kTBIntro])) / 2);  	strcat(strcat(buffer, _vm->_textParser[kTBIntro]), "\n");  	index = 0; -	for (int i = 0; i < _vm->_numObj; i++) {        // Assign strings +	for (int i = 0; i < _vm->_object->_numObj; i++) { // Assign strings  		if (_vm->_object->isCarried(i)) {  			if (index++ & 1)  				strcat(strcat(buffer, _vm->_arrayNouns[_vm->_object->_objects[i].nounIndex][1]), "\n"); | 
