summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/resources/image.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp
index 0540d543..4b913b57 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -44,6 +44,8 @@ Image::Image(SDL_Surface *image):
mBounds.x = 0;
mBounds.y = 0;
+ mLoaded = false;
+
if (mSDLSurface)
{
mBounds.w = mSDLSurface->w;
@@ -53,11 +55,8 @@ Image::Image(SDL_Surface *image):
mLoaded = true;
}
else
- {
logger->log(
"Image::Image(SDL_Surface*): Couldn't load invalid Surface!");
- mLoaded = false;
- }
}
#ifdef USE_OPENGL