From 21fb4af15494e8a39c08e88a8d51f26f6ed58dff Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 29 Jan 2012 16:33:43 +0100 Subject: SWORD25: Return 0 instead of false in Screenshot::createThumbnail. This should "fix" a g++ warning. --- engines/sword25/gfx/screenshot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sword25/gfx/screenshot.cpp b/engines/sword25/gfx/screenshot.cpp index de7b62fba9..0ea4bff906 100644 --- a/engines/sword25/gfx/screenshot.cpp +++ b/engines/sword25/gfx/screenshot.cpp @@ -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 -- cgit v1.2.3