summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-18 18:51:15 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-18 18:51:15 +0300
commite469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0 (patch)
treebfeb4a907acd9e0b6838e393eccf3bf6da44ccad /src/render
parentc8b1e6e5455dd0c9c51b6b212478ed1e5aa1af4c (diff)
downloadmv-e469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0.tar.gz
mv-e469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0.tar.bz2
mv-e469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0.tar.xz
mv-e469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0.zip
Add some clang fixes.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/graphics_calcImageRect.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/graphics_calcImageRect.hpp b/src/render/graphics_calcImageRect.hpp
index c33ec94e6..a0cc73ff7 100644
--- a/src/render/graphics_calcImageRect.hpp
+++ b/src/render/graphics_calcImageRect.hpp
@@ -68,7 +68,8 @@ if (top && left && bottom && right)
calcPatternInline(vert, right, x + w - rw, y + th, rw, h - th - bh);
}
-calcTileVertexesInline(vert, topLeft, x, y);
+if (topLeft)
+ calcTileVertexesInline(vert, topLeft, x, y);
if (topRight)
{
const int trw = topRight->getWidth();