diff --git a/src/common/scripting/backend/codegen.cpp b/src/common/scripting/backend/codegen.cpp index 08668dd51..8932d91d6 100644 --- a/src/common/scripting/backend/codegen.cpp +++ b/src/common/scripting/backend/codegen.cpp @@ -7180,7 +7180,7 @@ bool FxStructMember::RequestAddress(FCompileContext &ctx, bool *writable) if (membervar->Flags & VARF_Meta) { // Meta variables are read only. - *writable = false; + if(writable != nullptr) *writable = false; } else if (writable != nullptr) {