Fixed compilation with GCC/Clang

error: cannot pass non-trivial object of type 'FName' to variadic function; expected type from format string was 'char *' [-Wnon-pod-varargs]
This commit is contained in:
alexey.lysiuk 2017-02-05 14:52:17 +02:00
parent b570d0819b
commit ef871ec09f

View file

@ -2197,7 +2197,7 @@ template<> FSerializer &Serialize(FSerializer &arc, const char *key, FFont *&fon
font = V_GetFont(n); font = V_GetFont(n);
if (font == nullptr) if (font == nullptr)
{ {
Printf(TEXTCOLOR_ORANGE "Could not load font %s\n", n); Printf(TEXTCOLOR_ORANGE "Could not load font %s\n", n.GetChars());
font = SmallFont; font = SmallFont;
} }
return arc; return arc;