fix save to wav

This commit is contained in:
nikitalita 2024-10-31 21:33:17 -05:00
parent ef8d981267
commit 08db8edbff

View File

@ -624,7 +624,7 @@ Error AudioStreamWAV::save_to_wav(const String &p_path) {
}
String file_path = p_path;
if (!(file_path.substr(file_path.length() - 4, 4) == ".wav")) {
if (file_path.substr(file_path.length() - 4, 4).to_lower() != ".wav") {
file_path += ".wav";
}