diff --git a/src/scripting/zscript/zcc_compile.cpp b/src/scripting/zscript/zcc_compile.cpp index 1925a2eb6..57bfbd0ec 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);