diff --git a/src/scripting/backend/codegen.cpp b/src/scripting/backend/codegen.cpp index 811caab5a..4a446b8a6 100644 --- a/src/scripting/backend/codegen.cpp +++ b/src/scripting/backend/codegen.cpp @@ -2488,6 +2488,12 @@ FxExpression *FxAssign::Resolve(FCompileContext &ctx) delete this; return nullptr; } + else if (Base->IsDynamicArray()) + { + ScriptPosition.Message(MSG_ERROR, "Cannot assign dynamic arrays, use Copy() or Move() function instead"); + delete this; + return nullptr; + } if (!Base->IsVector() && Base->ValueType->isStruct()) { ScriptPosition.Message(MSG_ERROR, "Struct assignment not implemented yet");