mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
fix save to wav
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user