diff --git a/stepmania/src/SDL_utils.cpp b/stepmania/src/SDL_utils.cpp index 9b1b59db0c..1937a7a91a 100644 --- a/stepmania/src/SDL_utils.cpp +++ b/stepmania/src/SDL_utils.cpp @@ -276,6 +276,8 @@ SDL_Surface *SDL_CreateRGBSurfaceSane static void FindAlphaRGB(const SDL_Surface *img, Uint8 &r, Uint8 &g, Uint8 &b, bool reverse) { + r = g = b = 0; + /* If we have no alpha or no color key, there's no alpha color. */ if(img->format->BitsPerPixel == 8 && !(img->flags & SDL_SRCCOLORKEY)) return;