diff --git a/olcConsoleGameEngine.h b/olcConsoleGameEngine.h index 7745c3c..c2d5a46 100644 --- a/olcConsoleGameEngine.h +++ b/olcConsoleGameEngine.h @@ -371,7 +371,7 @@ class olcConsoleGameEngine // Set the size of the screen buffer COORD coord = { (short)m_nScreenWidth, (short)m_nScreenHeight }; if (!SetConsoleScreenBufferSize(m_hConsole, coord)) - Error(L"SetConsoleScreenBufferSize"); + return Error(L"SetConsoleScreenBufferSize"); // Assign screen buffer to the console if (!SetConsoleActiveScreenBuffer(m_hConsole))