2dlib: Fix uninitialized bool compiler warning in surface.cpp

This commit is contained in:
Sebastian Holtermann 2024-10-30 18:54:31 +01:00
parent 987a51d38d
commit 3ac2cb8382

View File

@ -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: