aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/map-loader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb/map-loader.cpp')
-rw-r--r--engines/hdb/map-loader.cpp4
1 files changed, 2 insertions, 2 deletions
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;