diff options
| author | Eugene Sandulenko | 2019-06-28 23:27:23 +0200 |
|---|---|---|
| committer | Eugene Sandulenko | 2019-09-03 17:17:04 +0200 |
| commit | 5b327fb519ef2b8c203d74d33e2666971170c537 (patch) | |
| tree | fa83e4045f10fc48abcb75e39d5d65e7a2a04059 | |
| parent | ff25a0f4dd69ebe38867366b60a60f4b49633af8 (diff) | |
| download | scummvm-rg350-5b327fb519ef2b8c203d74d33e2666971170c537.tar.gz scummvm-rg350-5b327fb519ef2b8c203d74d33e2666971170c537.tar.bz2 scummvm-rg350-5b327fb519ef2b8c203d74d33e2666971170c537.zip | |
HDB: Fix bug when drawing gratings
| -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); } |
