(I tried explaining the bug purely with words multiple times, and failed, so I've put together a few images, demonstrating it.)
http://imgur.com/a/rY3dq
Test Program:
http://pastebin.com/jr38vzpa
Button API:
http://pastebin.com/TmCR7bWX
As you can see, the program acts very strangely. I should also note that any code may be put inside any function being run by the api with the same results.
I spent quite a while trying to figure this one out and just can't.
Help is appreciated!
Thanks!











