diff --git a/src/osd/sdl/video.c b/src/osd/sdl/video.c index 73b200242c0..ba9854f24ef 100644 --- a/src/osd/sdl/video.c +++ b/src/osd/sdl/video.c @@ -121,7 +121,10 @@ int sdlvideo_init(running_machine &machine) if (sdlwindow_init(machine)) return 1; - tc = machine.first_screen()->palette()->entries(); + if (machine.first_screen()!=NULL && machine.first_screen()->palette()!=NULL) + tc = machine.first_screen()->palette()->entries(); + else + tc = 0; // create the windows sdl_options &options = downcast(machine.options());