summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/resources/image.cpp2
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;