aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-06-29 23:26:42 +0200
committerEugene Sandulenko2019-09-03 17:17:05 +0200
commit709f5751906b5eaec85b911dd76ade78a2b07074 (patch)
tree5d1eb1015bb6f5307abababb27effc43340f6824
parent9bc1d5fb6e486ddeeb4d160d1d8f472c902d3990 (diff)
downloadscummvm-rg350-709f5751906b5eaec85b911dd76ade78a2b07074.tar.gz
scummvm-rg350-709f5751906b5eaec85b911dd76ade78a2b07074.tar.bz2
scummvm-rg350-709f5751906b5eaec85b911dd76ade78a2b07074.zip
HDB: Fix getMapBGTileFlags()
-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;