- Reaction score
- 456
This is not the problem code, but works the same way.
This is the error message:
It seems to give the error for the third and fourth struct ([1][0] and [1][1]).
JASS:
library Problem
private struct Struct2
endstruct
private type type1 extends Struct2 array[2]
private type type2 extends type1 array[2]
struct Struct1
private type2 type2_ar
method Destroy takes nothing returns nothing
call .type2_ar[0][0].destroy()
call .type2_ar[0][1].destroy()
call .type2_ar[1][0].destroy()
call .type2_ar[1][1].destroy()
endmethod
method Create takes nothing returns nothing
set .type2_ar[0][0] = Struct2.create()
set .type2_ar[0][1] = Struct2.create()
set .type2_ar[1][0] = Struct2.create()
set .type2_ar[1][1] = Struct2.create()
endmethod
endstruct
endlibrary
This is the error message:
It seems to give the error for the third and fourth struct ([1][0] and [1][1]).