EntityCollided Bug

BlitzMax Modules Forums/MiniB3D/EntityCollided Bug

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If you use an type_no that has no entities associated to it, causes a crash.

Serious:-

"Attempt to accessfield or method of Null object"
In this example There are no entities with the entitytype of 99.

If EntityCollided(ent, 99) Then 
'	
EndIf



not so serious :-

"Attempt to index array elements beyond array length"
In this example An unrealistically high type_no.

If EntityCollided(ent, 9999) Then 
'	
EndIf