diff options
author | Aaron Giles <aaron@aarongiles.com> | 2008-04-21 00:03:51 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2008-04-21 00:03:51 +0000 |
commit | 7d9b9885a5dbd061ad50a29a44266ca74c55c12a (patch) | |
tree | 78726dea9e48263e0f9f0bed603c0220af3b9790 | |
parent | e26f80fde075643afc9d994385c116630b669142 (diff) |
From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Fix 01588 timecrsa, timecris: MAME simply quits after
pressing F3 in both sets, game cannot be runned
Hi mamedev,
This small patch fixes the crash in bug 01588 and seems to allow the
game to start in most cases. In some cases in my testing the board
failed startup tests, but that appears to be unrelated.
~aa
-rw-r--r-- | src/mame/video/namcos22.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mame/video/namcos22.c b/src/mame/video/namcos22.c index 65429faf07d..ba7f9ab6d2e 100644 --- a/src/mame/video/namcos22.c +++ b/src/mame/video/namcos22.c @@ -2217,6 +2217,12 @@ WRITE32_HANDLER( namcos22_paletteram_w ) dirtypal[offset&(0x7fff/4)] = 1; } +static void namcos22_reset(running_machine *machine) +{ + memset(&mSceneRoot, 0, sizeof(mSceneRoot)); + mpFreeSceneNode = NULL; +} + static void namcos22_exit(running_machine *machine) { poly_free(poly); @@ -2243,6 +2249,7 @@ static VIDEO_START( common ) #else poly = poly_alloc(4000, sizeof(poly_extra_data), 0); #endif + add_reset_callback(machine, namcos22_reset); add_exit_callback(machine, namcos22_exit); } |