Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Bug Reports / Crash at RETURN with arrays that don't exist

Author
Message
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 29th Aug 2010 03:58 Edited at: 29th Aug 2010 04:02
DBP 7.5



When using ARRAY COUNT on an array that does not exist, the program will crash upon the next call of the RETURN command. The same thing happens with ARRAY INDEX VALID and GET ARRAY TYPE.

If the RETURN command is not used, the command will simply return 0 (odd in its own right because it ought to return -1 if the array has no elements). This includes if the command is used in a function.

I know this is an obscure bug that can be avoided through proper coding, but there should be a more informative error message when this happens.


Latest progress: Fog of War implemented; frustrated by pathfinding >.>

Login to post a reply

Server time is: 2024-04-16 12:42:48
Your offset time is: 2024-04-16 12:42:48