From 38291dfacccfdf7c71109a7a0bae6b4d7ce2f671 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 29 May 2019 17:34:57 +0300 Subject: [PATCH] - fixed: version wasn't set for ZScript global variables https://forum.zdoom.org/viewtopic.php?t=64830 --- 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 b7998f411..7bb2fbc71 100644 --- a/src/scripting/zscript/zcc_compile.cpp +++ b/src/scripting/zscript/zcc_compile.cpp @@ -1353,7 +1353,7 @@ bool ZCCCompiler::CompileFields(PContainerType *type, TArrayBitValue != 0) thisfieldtype = fd->FieldSize == 1 ? TypeUInt8 : fd->FieldSize == 2 ? TypeUInt16 : TypeUInt32; PField *f = Create(name->Name, thisfieldtype, varflags | VARF_Native | VARF_Static, fd->FieldOffset, fd->BitValue); - if (f->Flags & (ZCC_Version | ZCC_Deprecated)) + if (field->Flags & (ZCC_Version | ZCC_Deprecated)) { f->mVersion = field->Version; }