summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2009-08-14 00:26:12 +0200
committerBertram <bertram@cegetel.net>2009-08-14 00:26:12 +0200
commitd6f3fde56c562a0a060c5e472c831c577c9a33c1 (patch)
treeeb90fec1e2ec637d2d06e53772195b56f3694fd0 /src/resources
parent32e63222acc750fce68048211df3434256802ec4 (diff)
downloadmana-d6f3fde56c562a0a060c5e472c831c577c9a33c1.tar.gz
mana-d6f3fde56c562a0a060c5e472c831c577c9a33c1.tar.bz2
mana-d6f3fde56c562a0a060c5e472c831c577c9a33c1.tar.xz
mana-d6f3fde56c562a0a060c5e472c831c577c9a33c1.zip
Reliability fix in Image::Image(SDL_Surface*)...
Diffstat (limited to 'src/resources')
-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