diff --git a/src/StepMania.cpp b/src/StepMania.cpp index 4b9203c8af..7b2a56b206 100644 --- a/src/StepMania.cpp +++ b/src/StepMania.cpp @@ -1034,8 +1034,8 @@ RString StepMania::SaveScreenshot( RString Dir, bool SaveCompressed, bool MakeSi RString FileName = FileNameNoExtension + "." + (SaveCompressed ? "jpg" : "png"); RString Path = Dir+FileName; - bool Result = DISPLAY->SaveScreenshot( Path, fmt ); - if( !Result ) + + if( !DISPLAY->SaveScreenshot(Path, fmt) ) { SCREENMAN->PlayInvalidSound(); return RString();