diff --git a/source/core/raze_music.cpp b/source/core/raze_music.cpp index 5e1743fcd..69712ea9c 100644 --- a/source/core/raze_music.cpp +++ b/source/core/raze_music.cpp @@ -81,7 +81,7 @@ FString G_SetupFilenameBasedMusic(const char* fn, const char* defmusic) test.Format("%s.%s", name.GetChars(), ext); if (FileExists(test)) return test; #ifdef __unix__ - test.Format("%s.%s", name.GetChars(), FString(ext.GetChars()).MakeLower().GetChars()); + test.Format("%s.%s", name.GetChars(), FString(ext).MakeLower().GetChars()); if (FileExists(test)) return test; #endif }