mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
- prohibit assignment of dynamic arrays
https://forum.zdoom.org/viewtopic.php?t=61682
This commit is contained in:
parent
d965c9aa76
commit
31bd7cfc04
1 changed files with 6 additions and 0 deletions
|
@ -2480,6 +2480,12 @@ FxExpression *FxAssign::Resolve(FCompileContext &ctx)
|
||||||
delete this;
|
delete this;
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
else if (Base->IsDynamicArray())
|
||||||
|
{
|
||||||
|
ScriptPosition.Message(MSG_ERROR, "Cannot assign dymanic arrays, use Copy() or Move() function instead");
|
||||||
|
delete this;
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
if (!Base->IsVector() && Base->ValueType->isStruct())
|
if (!Base->IsVector() && Base->ValueType->isStruct())
|
||||||
{
|
{
|
||||||
ScriptPosition.Message(MSG_ERROR, "Struct assignment not implemented yet");
|
ScriptPosition.Message(MSG_ERROR, "Struct assignment not implemented yet");
|
||||||
|
|
Loading…
Reference in a new issue