Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - mangulator

Pages: [1]
1
Support / Nitpick bug on GetSpriteIdByName()
« on: February 06, 2013, 10:50:38 pm »
I recently had to index a bunch of sprites by id. After looking at the docs, I added an error check for id zero, assuming that meant the named sprite could not be found. But I actually have a sprite zero in all my collections (makes sense). Perhaps returning -1 to indicate failure would be more useful?

Thanks Unikron for a great library.

Pages: [1]