From ac9a4281966189794a4757edadb10d057c042175 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 16 Mar 2019 14:39:29 +0200 Subject: [PATCH] - fixed compilation error with some versions of GCC and Clang src/p_acs.cpp:8719:100: error: cannot pass non-trivial object of type 'FString' to variadic function; expected type from format string was 'char *' [-Wnon-pod-varargs] --- src/p_acs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index 76d26b742..f230f57cb 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -8716,7 +8716,7 @@ scriptwait: if (type & HUDMSG_LOG) { int consolecolor = color >= CR_BRICK && color <= CR_YELLOW ? color + 'A' : '-'; - Printf(PRINT_NONOTIFY, "\n" TEXTCOLOR_ESCAPESTR "%c%s\n%s\n%s\n", consolecolor, console_bar, work, console_bar); + Printf(PRINT_NONOTIFY, "\n" TEXTCOLOR_ESCAPESTR "%c%s\n%s\n%s\n", consolecolor, console_bar, work.GetChars(), console_bar); } } }