1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 07:59:09 +00:00

Fix #9643, 95386dc: Incorrect determination of screenshot format (#9644)

This commit is contained in:
Loïc Guilloux
2021-10-22 16:34:48 +02:00
committed by Patric Stout
parent 09d881d579
commit f13052b742

View File

@@ -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;
}