diff --git a/src/openrct2-ui/windows/LoadSave.cpp b/src/openrct2-ui/windows/LoadSave.cpp index c66b84858b..ebcd19d187 100644 --- a/src/openrct2-ui/windows/LoadSave.cpp +++ b/src/openrct2-ui/windows/LoadSave.cpp @@ -419,7 +419,7 @@ static u8string Browse(bool isSave) { // When the given save type was given, Windows still interprets a filename with a dot in its name as a custom extension, // meaning files like "My Coaster v1.2" will not get the .td6 extension by default. - if (isSave && get_file_extension_type(path) != fileType) + if (isSave && get_file_extension_type(outPath) != fileType) path_append_extension(outPath, extension.c_str(), std::size(outPath)); }