diff --git a/src/scripting/decorate/thingdef_parse.cpp b/src/scripting/decorate/thingdef_parse.cpp index d3d6335516..24360b165c 100644 --- a/src/scripting/decorate/thingdef_parse.cpp +++ b/src/scripting/decorate/thingdef_parse.cpp @@ -77,7 +77,7 @@ PClassActor *DecoDerivedClass(const FScriptPosition &sc, PClassActor *parent, FN if (type == nullptr) { FString newname = typeName.GetChars(); - FString sourcefile = sc.FileName; + FString sourcefile = sc.FileName.GetChars(); sourcefile.Substitute(":", "@"); newname << '@' << sourcefile; @@ -1342,4 +1342,4 @@ void ParseAllDecorate() auto ns = Namespaces.NewNamespace(sc.LumpNum); ParseDecorate(sc, ns); } -} \ No newline at end of file +} diff --git a/src/scripting/zscript/zcc_compile.cpp b/src/scripting/zscript/zcc_compile.cpp index f73ba789a6..3f5208c6dd 100644 --- a/src/scripting/zscript/zcc_compile.cpp +++ b/src/scripting/zscript/zcc_compile.cpp @@ -1356,7 +1356,7 @@ bool ZCCCompiler::CompileFields(PContainerType *type, TArraymVersion = field->Version; } - if (name->Name == Name_globalfreeze) // Give the parser a kick in the butt for not parsing the declaration properly. I have no idea why it doesn't work. + if (name->Name == NAME_globalfreeze) // Give the parser a kick in the butt for not parsing the declaration properly. I have no idea why it doesn't work. { f->mVersion = MakeVersion(3, 8, 0); f->Flags |= VARF_Deprecated;