From 3ac2cb8382f85c7b652f890a47c90afc623fdad8 Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Wed, 30 Oct 2024 18:54:31 +0100 Subject: [PATCH] 2dlib: Fix uninitialized bool compiler warning in surface.cpp --- 2dlib/surface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/2dlib/surface.cpp b/2dlib/surface.cpp index 2ae519b6..cb1b1e7f 100644 --- a/2dlib/surface.cpp +++ b/2dlib/surface.cpp @@ -435,10 +435,9 @@ void grSurface::replace_color(ddgr_color sc, ddgr_color dc) { // --------------------------------------------------------------------------- char *grSurface::lock(int *rowsize) { - bool grerr; - ASSERT(m_SurfInit); + bool grerr = false; switch (ddsfObj.type) { case SURFTYPE_VIDEOSCREEN: case SURFTYPE_GENERIC: