mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
fix save to wav
This commit is contained in:
parent
ef8d981267
commit
08db8edbff
1 changed files with 1 additions and 1 deletions
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue