Hello, I have an odd problem. While starting my level the programm sometimes crashes and sometimes not. This is the part that seem to cause the crash:
Code:
while(count < street_count)//warte bis alle registriert sind
		{
			count = 0;
			for(i=0;i<street_count;i++)
			{
				if(streets[i]!=NULL)
				{
					 diag("\n");diag("Check8.");diag(str_for_num(NULL,i));
					count++;
				}
			}
			wait(1);
		}


Streets[] is an ENTITY* array of 1000 and streetcount is 406
the end of my diag file is

Quote:

...
Check8.373
Check8.374
Check8.375
Check8.376
Check8.377
Check8.378
Check8.379
Check8.380
Check8.381
Check8.382
Check8.383
Check8.384
Check8.385
Check8.386
Check8.387
Check8.388
Check8.389
Check8.390
Check8.391
Check8.392
Check8.393
Check8.394
Check8.395
Check8.396
Check8.397
Check8.398
Check8.399
Check8.400
Check8.401
Check8.402
Check8.403
Check8.404


everytime it crashes, it crashes at this point. But like I sayed, this happens just sometimes