diff options
author | Travis Howell | 2005-03-28 11:38:04 +0000 |
---|---|---|
committer | Travis Howell | 2005-03-28 11:38:04 +0000 |
commit | 22affb0382ead2fed3bf44111320aa85d4d510f3 (patch) | |
tree | cf33d1ccb16b1cf13d5a5a7eb4eebb50e827b9d6 /scumm/script_v72he.cpp | |
parent | 2f2ca8ac21b778736742857b8a45741f9db47665 (diff) | |
download | scummvm-rg350-22affb0382ead2fed3bf44111320aa85d4d510f3.tar.gz scummvm-rg350-22affb0382ead2fed3bf44111320aa85d4d510f3.tar.bz2 scummvm-rg350-22affb0382ead2fed3bf44111320aa85d4d510f3.zip |
Check class of object number, not loop.
Cleanup.
svn-id: r17272
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r-- | scumm/script_v72he.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index ff6a25e96c..7d9f6dc954 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -683,7 +683,7 @@ int ScummEngine_v72he::findObject(int x, int y, int num, int *args) { // Check object class cls = args[0]; - b = getClass(i, cls); + b = getClass(_objs[i].obj_nr, cls); if ((cls & 0x80 && b) || (!(cls & 0x80) && !b)) return result; } |