diff --git a/common/draw.c b/common/draw.c index 1f14891..22ed989 100644 --- a/common/draw.c +++ b/common/draw.c @@ -974,7 +974,10 @@ Call before beginning any disc IO. */ void Draw_BeginDisc (void) { -// D_BeginDirectRect (vid.width - 24, 0, draw_disc->data, 24, 24); + if (!draw_disc) + return; + + D_BeginDirectRect (vid.width - 24, 0, draw_disc->data, 24, 24); } @@ -988,6 +991,8 @@ Call after completing any disc IO */ void Draw_EndDisc (void) { + if (!draw_disc) + return; D_EndDirectRect (vid.width - 24, 0, 24, 24); }