Fixed compilation error with GCC/Clang

src/scripting/zscript/zcc_compile.cpp:1039:11: error: no viable conversion from 'FName' to 'FString'
This commit is contained in:
alexey.lysiuk 2017-01-23 22:20:07 +02:00
parent b3aa7c61a9
commit 799f6c6e26
1 changed files with 1 additions and 1 deletions

View File

@ -1036,7 +1036,7 @@ bool ZCCCompiler::CompileFields(PStruct *type, TArray<ZCC_VarDeclarator *> &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);