summaryrefslogtreecommitdiff
path: root/games-puzzle/xwelltris/files/xwelltris-1.0.1-gcc-11.patch
blob: 0398bfec43598b65765aef0dbc1340ae9367eeba (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/sdl/sdlwelldrawing.cxx
+++ b/src/sdl/sdlwelldrawing.cxx
@@ -72,7 +72,7 @@ void SDLWellDrawingEngine::init(int inum_fields, int idx, int idy,
 
 	fields[i]=SDL_DisplayFormat(surface);
 	SDL_FreeSurface(surface);
-	if(fields[i]>0)
+	if(fields[i])
 	    clear_field(i);
     }
     bg_color=colors[BackColor];