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: