diff options
author | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-10-22 16:34:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 16:34:48 +0200 |
commit | 08c048e0a1bd16a41a97faa7dc32d41492098365 (patch) | |
tree | 5acfcb53e9771d35c1a5dfc225cf63be6a09d83f | |
parent | ae340f415e5ab740bec1d6eb76d70c39bbd53b8b (diff) | |
download | openttd-08c048e0a1bd16a41a97faa7dc32d41492098365.tar.xz |
Fix #9643, 95386dc: Incorrect determination of screenshot format (#9644)
-rw-r--r-- | src/screenshot.cpp | 2 |
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; } |