Changeset - r26035:976c6433ce5d
[Not reviewed]
master
0 1 0
Loïc Guilloux - 3 years ago 2021-10-22 14:34:48
glx22@users.noreply.github.com
Fix #9643, 95386dc: Incorrect determination of screenshot format (#9644)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/screenshot.cpp
Show inline comments
 
@@ -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);
0 comments (0 inline, 0 general)