- 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]
This commit is contained in:
alexey.lysiuk 2019-03-16 14:39:29 +02:00
parent 669b13ab8a
commit ac9a428196

View file

@ -8716,7 +8716,7 @@ scriptwait:
if (type & HUDMSG_LOG) if (type & HUDMSG_LOG)
{ {
int consolecolor = color >= CR_BRICK && color <= CR_YELLOW ? color + 'A' : '-'; 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);
} }
} }
} }