- added some syntactic help to the ZScript parser to allow defining the arrays with native structs on the script side instead of having to define them internally.

This commit is contained in:
Christoph Oelckers 2017-03-13 12:48:25 +01:00
parent fc8b697e33
commit 5fd86cf98c
16 changed files with 106 additions and 58 deletions

View file

@ -7147,7 +7147,7 @@ FxExpression *FxArrayElement::Resolve(FCompileContext &ctx)
{
PDynArray *darraytype = static_cast<PDynArray*>(Array->ValueType);
elementtype = darraytype->ElementType;
Array->ValueType = NewPointer(NewResizableArray(elementtype)); // change type so that this can use the code for resizable arrays unchanged.
Array->ValueType = NewPointer(NewStaticArray(elementtype)); // change type so that this can use the code for resizable arrays unchanged.
arrayispointer = true;
}
else