aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2004-10-16 05:27:42 +0000
committerTravis Howell2004-10-16 05:27:42 +0000
commit4174c4b0ba9c01b66fbcdb152aaeb5f0aa4d47f5 (patch)
tree2104311c0cf5f4f4cef89e7f94c203eaca4bab20 /scumm
parentd42f98d0c4590c5f57ff92055fc741f97f89ca06 (diff)
downloadscummvm-rg350-4174c4b0ba9c01b66fbcdb152aaeb5f0aa4d47f5.tar.gz
scummvm-rg350-4174c4b0ba9c01b66fbcdb152aaeb5f0aa4d47f5.tar.bz2
scummvm-rg350-4174c4b0ba9c01b66fbcdb152aaeb5f0aa4d47f5.zip
Ooops
svn-id: r15565
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 2dd7eefbf1..7b3c58d64a 100644
--- a/scumm/script_v7he.cpp
+++ b/scumm/script_v7he.cpp
@@ -1060,7 +1060,7 @@ bool ScummEngine_v70he::polygonDefined(int id) {
}
bool ScummEngine_v70he::polygonContains(const WizPolygon &pol, int x, int y) {
- int pi = pol.numVerts;
+ int pi = pol.numVerts - 1;
bool diry = (y < pol.vert[pi].y);
bool curdir;
bool r = false;