summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-09-08 15:32:53 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-09-08 15:32:53 +0000
commit6a9d35c694eeb7b3cbe670495090190b582aaef9 (patch)
tree07540dc8c34417aad619f94f2dc059ca02ff1935
parentae043c68eb9f49fd3054781f8c65e8ce3b04802d (diff)
Fixed crasher in the debugger revealed by the latest changes.
-rw-r--r--src/emu/debug/debugvw.c2
-rw-r--r--src/emu/mame.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/debugvw.c b/src/emu/debug/debugvw.c
index 207f7213ea7..b0ec1074387 100644
--- a/src/emu/debug/debugvw.c
+++ b/src/emu/debug/debugvw.c
@@ -2048,7 +2048,7 @@ recompute:
if (view->recompute)
{
/* recompute the view */
- if (dasmdata->last_change_count != debug_comment_all_change_count(space->machine))
+ if (dasmdata->byteaddress != NULL && dasmdata->last_change_count != debug_comment_all_change_count(space->machine))
{
/* smoosh us against the left column, but not the top row */
view->topleft.x = 0;
diff --git a/src/emu/mame.h b/src/emu/mame.h
index c0f61bbbedd..116b7813535 100644
--- a/src/emu/mame.h
+++ b/src/emu/mame.h
@@ -167,7 +167,7 @@ struct _running_machine
const pen_t * pens; /* remapped palette pen numbers */
struct _colortable_t * colortable; /* global colortable for remapping */
pen_t * shadow_table; /* table for looking up a shadowed pen */
- bitmap_t *priority_bitmap; /* priority bitmap */
+ bitmap_t * priority_bitmap; /* priority bitmap */
/* audio-related information */
int sample_rate; /* the digital audio sample rate */