From: NCDS
Bad timing for me to post that. I was kind of raging irl; my bad. :redface:
No worries, mate ;)
It's safe to say that it's not Continue; that's causing the out of range error, so Simba's line debugging tool wont help us much here…
I'm now trying to debug all arrays in MSI_AutoInvFull.. We'll see if I can find the source of it in a bit.
E: So yeah, I think I figured out where the error is/was.
MSI tried to access SubLocs[0] even though Length(SubLocs) = 0…
I just added "if (Length(MSI_Locations[Location].SubLocs) > 0) then" to fix it ;)
if (not cameraChanged) then
if (MSI_Scripts[Scripts[CurrentScript].Name].AdjustCamera) then
if (Length(MSI_Locations[Location].SubLocs) > 0) then
begin
makeCompass(MSI_Locations[Location].SubLocs[CurrentPoint].Compass +
randomRange(-20, 20));
cameraChanged := true;
continue;
end;