diff options
-rw-r--r-- | src/resources/sdlimagehelper.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp index 84f36ec79..fa63517fc 100644 --- a/src/resources/sdlimagehelper.cpp +++ b/src/resources/sdlimagehelper.cpp @@ -117,7 +117,6 @@ Image *SDLImageHelper::createTextSurface(SDL_Surface *const tmpImage, if (!tmpImage) return nullptr; - Image *img; bool hasAlpha = false; const int sz = tmpImage->w * tmpImage->h; @@ -173,7 +172,7 @@ Image *SDLImageHelper::createTextSurface(SDL_Surface *const tmpImage, return nullptr; } - img = new Image(image, hasAlpha, alphaChannel); + Image *const img = new Image(image, hasAlpha, alphaChannel); img->mAlpha = alpha; return img; } |