mirror of
https://github.com/holub/mame
synced 2025-06-23 21:06:38 +03:00
v99x8.c: Fixed crash in debug builds, (nw)
This commit is contained in:
parent
da478ac3c3
commit
ccc5041310
@ -262,7 +262,7 @@ to emulate this. Also it keeps the palette a reasonable size. :)
|
||||
|
||||
*/
|
||||
|
||||
UINT16 *v99x8_device::s_pal_indYJK;
|
||||
UINT16 v99x8_device::s_pal_indYJK[0x20000];
|
||||
|
||||
PALETTE_INIT_MEMBER(v9958_device, v9958)
|
||||
{
|
||||
@ -275,9 +275,6 @@ PALETTE_INIT_MEMBER(v9958_device, v9958)
|
||||
if(machine().total_colors() != 19780)
|
||||
fatalerror("V9958: not enough palette, must be 19780");
|
||||
|
||||
if (v99x8_device::s_pal_indYJK == NULL)
|
||||
v99x8_device::s_pal_indYJK = auto_alloc_array(machine(),UINT16, 0x20000);
|
||||
|
||||
// set up YJK table
|
||||
LOG(("Building YJK table for V9958 screens, may take a while ... \n"));
|
||||
i = 0;
|
||||
|
@ -238,7 +238,7 @@ private:
|
||||
static const v99x8_mode s_modes[];
|
||||
|
||||
protected:
|
||||
static UINT16 *s_pal_indYJK;
|
||||
static UINT16 s_pal_indYJK[0x20000];
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user