From 388d800b405670c8df854c6b7b26f1ec6b89cd08 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 25 Dec 2019 17:44:57 +0200 Subject: [PATCH] - 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] --- src/d_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index 134c84880..bc4b66dde 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -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; }