diff options
author | 2019-09-20 00:28:19 +1000 | |
---|---|---|
committer | 2019-09-20 00:28:19 +1000 | |
commit | dac7094f3431b8f933497b0c7693e6baeb1bb75c (patch) | |
tree | 1c3dc049110c54d23dc31a1e6c1e8b11fd24e299 /src/emu/dipalette.cpp | |
parent | cc25024f791747fa17c1f06bd81c482a86aac91b (diff) |
(nw) misc cleanup:
* get rid of most assert_always
* get rid of a few MCFG_*_OVERRIDE
Diffstat (limited to 'src/emu/dipalette.cpp')
-rw-r--r-- | src/emu/dipalette.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/dipalette.cpp b/src/emu/dipalette.cpp index 76c0c0f1c82..b5ceeb05d4c 100644 --- a/src/emu/dipalette.cpp +++ b/src/emu/dipalette.cpp @@ -345,7 +345,8 @@ void device_palette_interface::allocate_palette(u32 numentries) m_shadow_group = numgroups++; if (palette_hilights_enabled()) m_hilight_group = numgroups++; - assert_always(numentries * numgroups <= 65536, "Palette has more than 65536 colors."); + if (numentries * numgroups > 65536) + throw emu_fatalerror("%s(%s): Palette has more than 65536 colors.", device().shortname(), device().tag()); // allocate a palette object containing all the colors and groups m_palette = palette_t::alloc(numentries, numgroups); |