- Joined
- Jul 17, 2011
- Messages
- 1,863
Hai
is there any difference when you:
1. Have a normal struct and create an array member of that struct like this:
2. And create a struct that extends an array and use it:
ive been getting some weird errors when using the first method like data being "shared" by members of different array struct types created from 1 struct so anyone know if these two are any different when the struct array is used as a global variable ?
is there any difference when you:
1. Have a normal struct and create an array member of that struct like this:
JASS:
struct A1
integer c
endstruct
//
globals
A1 array bla
endglobals
set bla[0].c = 0
set bla[1].c = 55
...
2. And create a struct that extends an array and use it:
JASS:
struct ABC extends array
integer c
endstruct
//
globals
endglobals
set ABC [0].c = 1
set ABC [1].c = 999
ive been getting some weird errors when using the first method like data being "shared" by members of different array struct types created from 1 struct so anyone know if these two are any different when the struct array is used as a global variable ?
Last edited: