diff --git a/aegisub/src/audio_provider_hd.cpp b/aegisub/src/audio_provider_hd.cpp index bd1adafad..d22bfe413 100644 --- a/aegisub/src/audio_provider_hd.cpp +++ b/aegisub/src/audio_provider_hd.cpp @@ -57,8 +57,9 @@ namespace { wxString cache_dir() { wxString path = lagi_wxString(OPT_GET("Audio/Cache/HD/Location")->GetString()); if (path == "default") - return StandardPaths::DecodePath("?temp/"); - return DecodeRelativePath(path, StandardPaths::DecodePath("?user/")); + path = "?temp/"; + + return DecodeRelativePath(StandardPaths::DecodePath(path), StandardPaths::DecodePath("?user/")); } wxString cache_path() {