diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index 87f10114..c340d8c6 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -1103,7 +1103,7 @@ void Graphics::updatetextboxes(void) void Graphics::drawimagecol( int t, int xp, int yp, bool cent/*= false*/ ) { - if (!INBOUNDS_VEC(t, images)) + if (!INBOUNDS_VEC(t, images) || images[t] == NULL) { return; } @@ -1134,7 +1134,7 @@ void Graphics::drawimagecol( int t, int xp, int yp, bool cent/*= false*/ ) void Graphics::drawimage( int t, int xp, int yp, bool cent/*=false*/ ) { - if (!INBOUNDS_VEC(t, images)) + if (!INBOUNDS_VEC(t, images) || images[t] == NULL) { return; } @@ -1162,7 +1162,7 @@ void Graphics::drawimage( int t, int xp, int yp, bool cent/*=false*/ ) void Graphics::drawpartimage( int t, int xp, int yp, int wp, int hp) { - if (!INBOUNDS_VEC(t, images)) + if (!INBOUNDS_VEC(t, images) || images[t] == NULL) { return; }