pic crash fix
This commit is contained in:
parent
4654c0fae2
commit
16d21afafd
1 changed files with 3 additions and 0 deletions
|
@ -2016,6 +2016,9 @@ void Draw_Pic_Scaled (int x, int y, qpic_t *pic)
|
||||||
float vmax, umax;
|
float vmax, umax;
|
||||||
|
|
||||||
|
|
||||||
|
if(pic == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
if ((x < 0) ||
|
if ((x < 0) ||
|
||||||
(x + pic->width > vid.width) ||
|
(x + pic->width > vid.width) ||
|
||||||
(y < 0) ||
|
(y < 0) ||
|
||||||
|
|
Loading…
Reference in a new issue