From 52707ed7ae0810dc17b13a1937daf1e95326d6eb Mon Sep 17 00:00:00 2001 From: Jacob Galam Date: Sun, 3 May 2020 04:52:23 +0300 Subject: [PATCH] Adding return error if can't set buffer size You probably forgot the return of the Error --- olcConsoleGameEngine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))