summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoïc Guilloux <glx22@users.noreply.github.com>2021-10-22 16:34:48 +0200
committerGitHub <noreply@github.com>2021-10-22 16:34:48 +0200
commit08c048e0a1bd16a41a97faa7dc32d41492098365 (patch)
tree5acfcb53e9771d35c1a5dfc225cf63be6a09d83f /src
parentae340f415e5ab740bec1d6eb76d70c39bbd53b8b (diff)
downloadopenttd-08c048e0a1bd16a41a97faa7dc32d41492098365.tar.xz
Fix #9643, 95386dc: Incorrect determination of screenshot format (#9644)
Diffstat (limited to 'src')
-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;
}