From 55f0bc47e8fa2601278a8132543d647767781c3a Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Sat, 2 Nov 2002 09:27:38 +0000 Subject: [PATCH] Fix for NDEBUG build --- goldlib/gall/gvidinit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/goldlib/gall/gvidinit.cpp b/goldlib/gall/gvidinit.cpp index fc5ace7..550c212 100644 --- a/goldlib/gall/gvidinit.cpp +++ b/goldlib/gall/gvidinit.cpp @@ -585,7 +585,8 @@ void GVid::detectinfo(GVidInfo* _info) { // Get video mode and number of rows and columns CONSOLE_SCREEN_BUFFER_INFO csbi; - assert(GetConsoleScreenBufferInfo(gvid_hout, &csbi) != 0); + int result = GetConsoleScreenBufferInfo(gvid_hout, &csbi); + assert(result != 0); _info->screen.mode = 0; _info->screen.rows = csbi.dwSize.Y;