From 799f6c6e2698ced2667ce5d7581e2ca7f170df6f Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 23 Jan 2017 22:20:07 +0200 Subject: [PATCH] Fixed compilation error with GCC/Clang src/scripting/zscript/zcc_compile.cpp:1039:11: error: no viable conversion from 'FName' to 'FString' --- src/scripting/zscript/zcc_compile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/zscript/zcc_compile.cpp b/src/scripting/zscript/zcc_compile.cpp index 1925a2eb66..57bfbd0ec8 100644 --- a/src/scripting/zscript/zcc_compile.cpp +++ b/src/scripting/zscript/zcc_compile.cpp @@ -1036,7 +1036,7 @@ bool ZCCCompiler::CompileFields(PStruct *type, TArray &Fiel { auto field = Fields[0]; FieldDesc *fd = nullptr; - FString str = FName(field->Names[0].Name); + FString str = FName(field->Names[0].Name).GetChars(); PType *fieldtype = DetermineType(type, field, field->Names->Name, field->Type, true, true);