diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-02 23:31:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-02 23:31:02 +0300 |
commit | b86f75e0faf7d646d5414cb6a6893bbb07131315 (patch) | |
tree | 8ef56e73470affc1977d7da82bcba133a5e8cd95 /src/render/sdlgraphics.cpp | |
parent | afedfd380a9b7d7c7917ba5e8cf20e994a1c0728 (diff) | |
download | manaplus-b86f75e0faf7d646d5414cb6a6893bbb07131315.tar.gz manaplus-b86f75e0faf7d646d5414cb6a6893bbb07131315.tar.bz2 manaplus-b86f75e0faf7d646d5414cb6a6893bbb07131315.tar.xz manaplus-b86f75e0faf7d646d5414cb6a6893bbb07131315.zip |
Add some missing checks in renderers.
Diffstat (limited to 'src/render/sdlgraphics.cpp')
-rw-r--r-- | src/render/sdlgraphics.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/sdlgraphics.cpp b/src/render/sdlgraphics.cpp index db2d15ae4..771d000d8 100644 --- a/src/render/sdlgraphics.cpp +++ b/src/render/sdlgraphics.cpp @@ -821,6 +821,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(); |