From ccc5041310b9b589da4abd4e14ef366d630417eb Mon Sep 17 00:00:00 2001 From: Wilbert Pol Date: Sat, 21 Dec 2013 22:39:17 +0000 Subject: [PATCH] v99x8.c: Fixed crash in debug builds, (nw) --- src/emu/video/v9938.c | 5 +---- src/emu/video/v9938.h | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/emu/video/v9938.c b/src/emu/video/v9938.c index a2833241d71..0ae5e770375 100644 --- a/src/emu/video/v9938.c +++ b/src/emu/video/v9938.c @@ -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; diff --git a/src/emu/video/v9938.h b/src/emu/video/v9938.h index 11bb9eebebf..e3cd70443e8 100644 --- a/src/emu/video/v9938.h +++ b/src/emu/video/v9938.h @@ -238,7 +238,7 @@ private: static const v99x8_mode s_modes[]; protected: - static UINT16 *s_pal_indYJK; + static UINT16 s_pal_indYJK[0x20000]; };