From 709f5751906b5eaec85b911dd76ade78a2b07074 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 29 Jun 2019 23:26:42 +0200 Subject: HDB: Fix getMapBGTileFlags() --- engines/hdb/map-loader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/hdb') diff --git a/engines/hdb/map-loader.cpp b/engines/hdb/map-loader.cpp index 09586548af..7c86e4b24b 100644 --- a/engines/hdb/map-loader.cpp +++ b/engines/hdb/map-loader.cpp @@ -717,7 +717,7 @@ uint32 Map::getMapBGTileFlags(int x, int y) { if (x < 0 || x >= _width || y < 0 || y >= _height) { return 0; } - Tile* tile = g_hdb->_drawMan->getTile(_foreground[y * _width + x]); + Tile *tile = g_hdb->_drawMan->getTile(_background[y * _width + x]); if (tile) return tile->_flags; return 0; @@ -727,7 +727,7 @@ uint32 Map::getMapFGTileFlags(int x, int y) { if (x < 0 || x >= _width || y < 0 || y >= _height) { return 0; } - Tile* tile = g_hdb->_drawMan->getTile(_foreground[y * _width + x]); + Tile *tile = g_hdb->_drawMan->getTile(_foreground[y * _width + x]); if (tile) return tile->_flags; return 0; -- cgit v1.2.3