From b9e8e4080559f0ce9b249d3fb4c39db1431692f0 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 23 May 2005 02:00:49 +0000 Subject: Turn Wiz struct into class as requested. svn-id: r18224 --- scumm/script_v72he.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scumm/script_v72he.cpp') diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index 590a63dcaf..1a33969bb3 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -735,8 +735,8 @@ int ScummEngine_v72he::findObject(int x, int y, int num, int *args) { continue; // Check polygon bounds - if (_wiz.polygonDefined(_objs[i].obj_nr)) { - if (_wiz.polygonHit(_objs[i].obj_nr, x, y)) + if (_wiz->polygonDefined(_objs[i].obj_nr)) { + if (_wiz->polygonHit(_objs[i].obj_nr, x, y)) result = _objs[i].obj_nr; else if (VAR_POLYGONS_ONLY != 0xFF && VAR(VAR_POLYGONS_ONLY)) continue; -- cgit v1.2.3