SWORD25: Return 0 instead of false in Screenshot::createThumbnail.

This should "fix" a g++ warning.
This commit is contained in:
Johannes Schickel 2012-01-29 16:33:43 +01:00
parent 163d57ba93
commit 21fb4af154

View File

@ -74,7 +74,7 @@ Common::SeekableReadStream *Screenshot::createThumbnail(Graphics::Surface *data)
// The source image must be 800x600.
if (data->w != 800 || data->h != 600 || data->format.bytesPerPixel != 4) {
error("The sreenshot dimensions have to be 800x600 in order to be saved as a thumbnail.");
return false;
return 0;
}
// Buffer for the output thumbnail