diff --git a/CommandLineFPS.cpp b/CommandLineFPS.cpp index 768dd0b..990f366 100644 --- a/CommandLineFPS.cpp +++ b/CommandLineFPS.cpp @@ -268,7 +268,7 @@ int main() // Display Map for (int nx = 0; nx < nMapWidth; nx++) - for (int ny = 0; ny < nMapWidth; ny++) + for (int ny = 0; ny < nMapHeight; ny++) { screen[(ny+1)*nScreenWidth + nx] = map[ny * nMapWidth + nx]; }