@@ -581,13 +581,13 @@ const char *GetCurrentScreenshotExtensio
/** Initialize screenshot format information on startup, with #_screenshot_format_name filled from the loadsave code. */
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;
}
_cur_screenshot_format = j;
_num_screenshot_formats = lengthof(_screenshot_formats);
Status change: