summaryrefslogtreecommitdiff
path: root/src/render/sdlgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-07 17:57:21 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-07 17:57:21 +0300
commit3173688b7c1a1027257aa057039bd50738ac8bb5 (patch)
treeba415bfcc8e196a1e92eeed851778f957265dee6 /src/render/sdlgraphics.cpp
parent852617a2ea3cfe83c1d0aec134d9369aa5c3af7b (diff)
downloadmanaverse-3173688b7c1a1027257aa057039bd50738ac8bb5.tar.gz
manaverse-3173688b7c1a1027257aa057039bd50738ac8bb5.tar.bz2
manaverse-3173688b7c1a1027257aa057039bd50738ac8bb5.tar.xz
manaverse-3173688b7c1a1027257aa057039bd50738ac8bb5.zip
In renderers in function calcTileVertexes add non null attributes.
Diffstat (limited to 'src/render/sdlgraphics.cpp')
-rw-r--r--src/render/sdlgraphics.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/render/sdlgraphics.cpp b/src/render/sdlgraphics.cpp
index 0043d1ccc..01acb5f57 100644
--- a/src/render/sdlgraphics.cpp
+++ b/src/render/sdlgraphics.cpp
@@ -670,8 +670,6 @@ void SDLGraphics::calcTileVertexes(ImageVertexes *restrict const vert,
const Image *restrict const image,
int x, int y) const restrict2
{
- if (!vert || !image)
- return;
vert->image = image;
calcTileSDL(vert, x, y);
}
@@ -680,8 +678,6 @@ void SDLGraphics::calcTileVertexesInline(ImageVertexes *restrict const vert,
const Image *restrict const image,
int x, int y) const restrict2
{
- if (!vert || !image)
- return;
vert->image = image;
calcTileSDL(vert, x, y);
}