- fixed compilation with GCC and Clang

src/d_main.cpp:3101:37: error: cannot pass non-trivial object of type 'FString' to variadic method; expected type from format string was 'char *' [-Wnon-pod-varargs]
This commit is contained in:
alexey.lysiuk 2019-12-25 17:44:57 +02:00
parent 2e467bd239
commit 388d800b40
1 changed files with 1 additions and 1 deletions

View File

@ -3098,7 +3098,7 @@ void I_UpdateWindowTitle()
if (level.LevelName && level.LevelName.GetChars()[0])
{
FString titlestr;
titlestr.Format("%s - %s", level.LevelName, DoomStartupInfo.Name.GetChars());
titlestr.Format("%s - %s", level.LevelName.GetChars(), DoomStartupInfo.Name.GetChars());
I_SetWindowTitle(titlestr.GetChars());
break;
}