diff options
author | Max Horn | 2011-05-13 11:45:42 +0200 |
---|---|---|
committer | Max Horn | 2011-05-13 11:47:13 +0200 |
commit | c02420df43bec4ec523c18d8e6fdb381af29c1b5 (patch) | |
tree | f595cd9d72f0b5ba5b98e80caf3544a0f0401830 /engines/scumm/he/script_v72he.cpp | |
parent | abaaf0cad9a63c1a6f1946a8a90facd1535e762d (diff) | |
download | scummvm-rg350-c02420df43bec4ec523c18d8e6fdb381af29c1b5.tar.gz scummvm-rg350-c02420df43bec4ec523c18d8e6fdb381af29c1b5.tar.bz2 scummvm-rg350-c02420df43bec4ec523c18d8e6fdb381af29c1b5.zip |
SCUMM: Add a Resource class, refactor res code around it
Diffstat (limited to 'engines/scumm/he/script_v72he.cpp')
-rw-r--r-- | engines/scumm/he/script_v72he.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/he/script_v72he.cpp b/engines/scumm/he/script_v72he.cpp index 96ffa2af3b..dfcfa32df4 100644 --- a/engines/scumm/he/script_v72he.cpp +++ b/engines/scumm/he/script_v72he.cpp @@ -621,11 +621,11 @@ void ScummEngine_v72he::o72_getArrayDimSize() { } void ScummEngine_v72he::o72_getNumFreeArrays() { - byte **addr = _res->_types[rtString]._address; + const ResourceManager::ResTypeData &rtd = _res->_types[rtString]; int i, num = 0; for (i = 1; i < _numArray; i++) { - if (!addr[i]) + if (!rtd._resources[i]._address) num++; } |