https://github.com/OneLoneCoder/CommandLineFPS/blob/b25beb721b9101e579d859f7507fdf2731011b30/CommandLineFPS.cpp#L271 This should be `for (int ny = 0; ny < nMapHeight; ny++)` instead.