I'm getting a syntax error I can't figure out (AGS v3.6.1). As a minimal example:
Code: ags
It works if I do:
Code: ags
... So it must have something to do with accessing it from the struct. Is there a correct syntax, or have I hit an engine limitation?
struct Storage
{
Object* oArray[];
}
Object*[] GetArray()
{
Storage s;
Object* oArray[] = s.oArray; // <-- Error "Type mismatch: cannot convert 'Object*' to 'Object*[]'"
return oArray;
}
It works if I do:
Object*[] GetArray()
{
Object* dummyArray[];
Object* oArray[] = dummyArray;
return oArray;
}
... So it must have something to do with accessing it from the struct. Is there a correct syntax, or have I hit an engine limitation?