diff options
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r-- | src/resources/image.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 6a7c79df..eb3a2409 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -260,7 +260,7 @@ void Image::unload() { mLoaded = false; - if (!mImage) { + if (mImage) { // Free the image surface. SDL_FreeSurface(mImage); mImage = NULL; |