diff options
author | Bertram <bertram@cegetel.net> | 2009-08-14 00:26:12 +0200 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2009-08-14 00:26:12 +0200 |
commit | d6f3fde56c562a0a060c5e472c831c577c9a33c1 (patch) | |
tree | eb90fec1e2ec637d2d06e53772195b56f3694fd0 /src/resources | |
parent | 32e63222acc750fce68048211df3434256802ec4 (diff) | |
download | mana-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.cpp | 5 |
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 |