[Ohrrpgce] SVN: teeemcee/8284 spriteedit: Fix crash when going past last palette; palette16_load now r

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Fri Dec 30 18:29:49 PST 2016


teeemcee
2016-12-30 18:29:49 -0800 (Fri, 30 Dec 2016)
485
spriteedit: Fix crash when going past last palette; palette16_load now returns a blank palette instead

This bug was introduced (I assume) in r8278

palette16_load returning NULL on an invalid palette ID didn't cause any
crashes anywhere else because it can be passed to frame_draw, and
no code outside allmodex and the sprite editor accesses palette data
(making 256-color palettes easy to support!)

The other palette16_load overload (not used anywhere) can still return NULL
though.
---
U   wip/allmodex.bas
U   wip/allmodex.bi
U   wip/bmodsubs.bas
U   wip/customsubs.bi
U   wip/customsubs.rbas


More information about the Ohrrpgce mailing list