diff options
-rw-r--r-- | engines/hdb/map-loader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hdb/map-loader.cpp b/engines/hdb/map-loader.cpp index c861936b2c..09586548af 100644 --- a/engines/hdb/map-loader.cpp +++ b/engines/hdb/map-loader.cpp @@ -698,7 +698,7 @@ void Map::drawEnts() { } void Map::drawGratings() { - for (int i = 0; i < kMaxGratings; i++) { + for (int i = 0; i < _numGratings; i++) { g_hdb->_drawMan->getTile(_gratings[i]->tile)->drawMasked(_gratings[i]->x, _gratings[i]->y); } @@ -706,7 +706,7 @@ void Map::drawGratings() { } void Map::drawForegrounds() { - for (int i = 0; i < kMaxForegrounds; i++) { + for (int i = 0; i < _numForegrounds; i++) { g_hdb->_drawMan->getTile(_foregrounds[i]->tile)->drawMasked(_foregrounds[i]->x, _foregrounds[i]->y); } |