Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

[967] Array and += bug

6 replies · 1,604 views · Started 11 March 2009

ffc script test {
void run() {
int foo[1] = {0};
foo[0] += 1;
}
}

This crashes ZQuest. Like, "Do you want to load up a debugger?" crash. It's the += operator that does it. -= too. Apparently, they don't like arrays.

Workaround: Rewrite:

foo[1] += 1;

as

foo[1] = foo[1] + 1

Didn't see it.

It had been around for a long time, but then jman fixed it.
It was still happening to me for a while after it was reported fixed, but it's not happening any more now.