- fixed compilation of POSIX targets

source/common/music/music.cpp:118:52: error: call of overloaded ‘FString(FName&)’ is ambiguous
    source/common/utility/zstring.h:133:2: note: candidate: FString::FString(char)
    source/common/utility/zstring.h:131:2: note: candidate: FString::FString(const char*)
This commit is contained in:
alexey.lysiuk 2020-01-28 11:00:25 +02:00
parent 212cfde186
commit d56fb25975

View file

@ -115,7 +115,7 @@ FString G_SetupFilenameBasedMusic(const char* fn, const char* defmusic)
FStringf test("%s.%s", name.GetChars(), ext.GetChars()); FStringf test("%s.%s", name.GetChars(), ext.GetChars());
if (FileExists(test)) return test; if (FileExists(test)) return test;
#ifdef __unix__ #ifdef __unix__
test.Format("%s.%s", name.GetChars(), FString(ext).MakeLower().GetChars()); test.Format("%s.%s", name.GetChars(), FString(ext.GetChars()).MakeLower().GetChars());
if (FileExists(test)) return test; if (FileExists(test)) return test;
#endif #endif
} }