aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2019-06-08 13:28:47 +0200
committerEugene Sandulenko2019-09-03 17:16:45 +0200
commit4b463bcc29b3f5724cc2df45f661aea330b1b0fe (patch)
tree6f50f2f17da441d5e9b9bbfeec8d767a374c3bfe /engines
parent86c6d23b5da106fef853d668d89adffd52806a0f (diff)
downloadscummvm-rg350-4b463bcc29b3f5724cc2df45f661aea330b1b0fe.tar.gz
scummvm-rg350-4b463bcc29b3f5724cc2df45f661aea330b1b0fe.tar.bz2
scummvm-rg350-4b463bcc29b3f5724cc2df45f661aea330b1b0fe.zip
HDB: Skip sky tiles
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/map-loader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/map-loader.cpp b/engines/hdb/map-loader.cpp
index d5b13e4e63..720c921865 100644
--- a/engines/hdb/map-loader.cpp
+++ b/engines/hdb/map-loader.cpp
@@ -174,7 +174,7 @@ void Map::draw() {
tileIndex = _foreground[matrixY + _mapTileX + i];
if (tileIndex >= 0) {
Tile *fTile = g_hdb->_drawMan->getTile(tileIndex);
- if (!(fTile->_flags & kFlagInvisible)) {
+ if (fTile && !(fTile->_flags & kFlagInvisible)) {
if ((fTile->_flags & kFlagGrating)) {
/*