aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2004-09-14 09:09:06 +0000
committerTravis Howell2004-09-14 09:09:06 +0000
commit20a444099deb0fa2f108a712c1e138ddace766d2 (patch)
tree2cecab5da3c72d779dc0b51d1b74bbcbd7b2c0d3 /scumm
parent488430a06ec8868fe82bd5f759da12b02c6db40f (diff)
downloadscummvm-rg350-20a444099deb0fa2f108a712c1e138ddace766d2.tar.gz
scummvm-rg350-20a444099deb0fa2f108a712c1e138ddace766d2.tar.bz2
scummvm-rg350-20a444099deb0fa2f108a712c1e138ddace766d2.zip
Correct id check
svn-id: r15112
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v7he.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp
index 7efeeecd42..fc32b24a68 100644
--- a/scumm/script_v7he.cpp
+++ b/scumm/script_v7he.cpp
@@ -1133,7 +1133,7 @@ int ScummEngine_v7he::polygonHit(int id, int x, int y) {
debug(1, "polygonHit(%d, %d, %d)", id, x, y);
for (int i = 0; i < _WizNumPolygons; i++) {
- if ((!id || id == i) && _WizPolygons[i].bound.contains(x, y)) {
+ if ((!id || _WizPolygons[i].id == id) && _WizPolygons[i].bound.contains(x, y)) {
if (polygonContains(_WizPolygons[i], x, y)) {
return _WizPolygons[i].id;
}