summaryrefslogtreecommitdiff
path: root/src/screenshot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/screenshot.cpp')
-rw-r--r--src/screenshot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screenshot.cpp b/src/screenshot.cpp
index 244aede50..f91648cf4 100644
--- a/src/screenshot.cpp
+++ b/src/screenshot.cpp
@@ -584,7 +584,7 @@ void InitializeScreenshotFormats()
{
uint j = 0;
for (uint i = 0; i < lengthof(_screenshot_formats); i++) {
- if (_screenshot_format_name.compare(_screenshot_formats[i].extension) != 0) {
+ if (_screenshot_format_name.compare(_screenshot_formats[i].extension) == 0) {
j = i;
break;
}