Problems in isolating a bug

Blitz3D Forums/Blitz3D Programming/Problems in isolating a bug

I think I have fixed it. It seems I was accessing a pivot that didn't exist anymore. I still don't know why there was no error in debug mode. Accessing a pivot that was removed using FreeEnity may work in release mode (as long as the released ram isn't overwritten by something else), but should result in an "entity does not exist" error in debug mode. In fact I have set the handle to Null, so EntityDistance is using Zero as the first parameter. A little strange that this gives no error in debug mode, as I said. Skipping parts in certain situations seems to fix it, so who cares :)