HDB: Fix bug when drawing gratings

This commit is contained in:
Eugene Sandulenko 2019-06-28 23:27:23 +02:00
parent ff25a0f4dd
commit 5b327fb519

View File

@ -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);
}