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

[429] ZScript crash

4 replies · 1,187 views · Started 01 July 2007

This script causes the compiler to crash:

import "std.zh"
item script icebombuse {
void run() {
int x = this->X;
int y = this->Y;
Screen->ComboD[ComboAt(x, y)] += 1;
}
}

It varies. It's not an FFC, but an item. Link places it, like a bomb.

I was able to fix it by moving the "ComboAt()" out of the array access, into a separate variable, and using that as the array access.