From 08c048e0a1bd16a41a97faa7dc32d41492098365 Mon Sep 17 00:00:00 2001 From: Loïc Guilloux Date: Fri, 22 Oct 2021 16:34:48 +0200 Subject: Fix #9643, 95386dc: Incorrect determination of screenshot format (#9644) --- src/screenshot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-54-g00ecf