diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/recorderfile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/recorderfile.cpp b/common/recorderfile.cpp index 1f283715d0..7552cd45b3 100644 --- a/common/recorderfile.cpp +++ b/common/recorderfile.cpp @@ -608,7 +608,8 @@ Graphics::Surface *PlaybackFile::getScreenShot(int number) { if (screenCount == number) { screenCount++; _readStream->seek(-4, SEEK_CUR); - return Graphics::loadThumbnail(*_readStream); + Graphics::Surface *thumbnail; + return Graphics::loadThumbnail(*_readStream, thumbnail) ? thumbnail : NULL; } else { uint32 size = _readStream->readUint32BE(); _readStream->skip(size-8); |