From f8126d9da676e69dff384b8a8f7136ad27fb014d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 7 Dec 2009 18:22:18 +0000 Subject: M4: Make M4Surface member w, h, pixels protected; some cleanup svn-id: r46280 --- engines/m4/rails.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/m4/rails.cpp') diff --git a/engines/m4/rails.cpp b/engines/m4/rails.cpp index 18b3bf7232..56faf204f0 100644 --- a/engines/m4/rails.cpp +++ b/engines/m4/rails.cpp @@ -79,7 +79,7 @@ static void checkPoint(int x, int y, int color, void *data) { return; else { M4Surface *codes = isWalkableData->codes; - if (x >= 0 && x < codes->w && y >= 0 && y < codes->h) { + if (x >= 0 && x < codes->width() && y >= 0 && y < codes->height()) { isWalkableData->result = !((*((uint8*)codes->getBasePtr(x, y))) & 0x10); } else { isWalkableData->result = false; -- cgit v1.2.3