diff --git a/source/exhumed/src/view.cpp b/source/exhumed/src/view.cpp index 4db850a33..ee0c25f36 100644 --- a/source/exhumed/src/view.cpp +++ b/source/exhumed/src/view.cpp @@ -203,9 +203,9 @@ void RefreshBackground() MaskStatus(); - for (int y = 0; y < xdim; y += tileY) + for (int y = 0; y < ydim; y += tileY) { - for (int x = 0; x < ydim; x += tileX) + for (int x = 0; x < xdim; x += tileX) { overwritesprite(x, y, nBackgroundPic + nTileOffset, -32, 0, kPalNormal); if (nTileOffset == 0) {