diff options
Diffstat (limited to 'src/render/sdl2graphics.cpp')
-rw-r--r-- | src/render/sdl2graphics.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/sdl2graphics.cpp b/src/render/sdl2graphics.cpp index 3b631caa5..7bad93889 100644 --- a/src/render/sdl2graphics.cpp +++ b/src/render/sdl2graphics.cpp @@ -635,6 +635,8 @@ void SDLGraphics::calcWindow(ImageCollection *const vertCol, { ImageVertexes *vert = nullptr; Image *const image = imgRect.grid[4]; + if (!image) + return; if (vertCol->currentImage != image) { vert = new ImageVertexes(); |