This might be a bug in the compiler: I declared an array within a struct with a limit of 3, and use indices 1, 2, and 3 in the script. I get a syntax error claiming that 3 is an array index out of bounds, while I can use a loop and never directly reference index 3 and JassHelper has no problems with that.

I forgot to mention that this array is of another struct type. I was under the impression that I should avoid using index 0 in struct arrays because I've had MUI and double free issues when doing so. Doesn't mean I'm right, but...

EDIT: Does this mean I've been going out of array bounds when using the "limiting" index of an array (3 for example, in a loop)?

I forgot to mention that this array is of another struct type. I was under the impression that I should avoid using index 0 in struct arrays because I've had MUI and double free issues when doing so. Doesn't mean I'm right, but..

Then MyStruct(0) is different from MyStructs[0] because one is an array lookup (no problems there) and one is direct access to an instance of the struct, and 0 is, unless I'm mistaken. never used as a struct instance.

Quote:

Originally Posted by Zerzax

EDIT: Does this mean I've been going out of array bounds when using the "limiting" index of an array (3 for example, in a loop)?

Originally posted by Rising_DuskYour spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

Originally posted by Kyrbi0Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).

Quote:

Originally posted by PyrogasmRome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.