I've been debugging this program since yesterday and I continue to run into a string subscript error. I pasted the code in a pastebin (it's only 400 lines), to see if anyone can figure out in their editor why I'm getting this. The problem seems to come up during a debug assertion failure.
My debugger says the problem is on line 224, so it's not an assertion failure.
It's literally what it says. A subscript out-of-range run time error means that you're attempting to access a non-existent array element.
Yeah, but I already put in an error check for assessing any non existent array elements. I've been trying to fix this problem since last night and nothing solved so far.
I dunno man. If you like, I can help you rewrite it. Though I'd need strict guidelines on what exactly it is what you're doing. As far as I can tell, your program is supposed to simulate hive mind behaviour in ants - they collect food and bring it back to the mound.