diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-11 17:35:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-11 18:00:22 +0300 |
commit | 52c7195a8ee91f95ef134d9798a47ea313df16c8 (patch) | |
tree | ca1f32cfadce611a1820b50f5386c02cd2ce06ae /src/render/nullopenglgraphics.cpp | |
parent | f1b82c1b06604c2c1eed750a6c980aa0b5355560 (diff) | |
download | manaverse-52c7195a8ee91f95ef134d9798a47ea313df16c8.tar.gz manaverse-52c7195a8ee91f95ef134d9798a47ea313df16c8.tar.bz2 manaverse-52c7195a8ee91f95ef134d9798a47ea313df16c8.tar.xz manaverse-52c7195a8ee91f95ef134d9798a47ea313df16c8.zip |
Second part of checks from Parasoft C++ Test.
Diffstat (limited to 'src/render/nullopenglgraphics.cpp')
-rw-r--r-- | src/render/nullopenglgraphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/nullopenglgraphics.cpp b/src/render/nullopenglgraphics.cpp index ed3dcd02f..c81b93990 100644 --- a/src/render/nullopenglgraphics.cpp +++ b/src/render/nullopenglgraphics.cpp @@ -573,7 +573,7 @@ void NullOpenGLGraphics::calcImagePattern(ImageVertexes* const vert, const int x, const int y, const int w, const int h) const { - if (!image) + if (!image || !vert) return; const SDL_Rect &imageRect = image->mBounds; |