aboutsummaryrefslogtreecommitdiff
path: root/source/Irrlicht/CAnimatedMeshSceneNode.cpp
diff options
context:
space:
mode:
authorJosiahWI <41302989+JosiahWI@users.noreply.github.com>2022-07-04 05:12:33 -0500
committerGitHub <noreply@github.com>2022-07-04 12:12:33 +0200
commit6db035e0aaf0ff3528748837835e959fea16d1ef (patch)
tree1be6fb1a289e6c6b36b5e8343af9c01f8f71c641 /source/Irrlicht/CAnimatedMeshSceneNode.cpp
parent6064e121335439938692459cb461d4f5dbae903f (diff)
downloadirrlicht-6db035e0aaf0ff3528748837835e959fea16d1ef.tar.xz
Fix null dereference reported by coverity (#115)
Diffstat (limited to 'source/Irrlicht/CAnimatedMeshSceneNode.cpp')
-rw-r--r--source/Irrlicht/CAnimatedMeshSceneNode.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/Irrlicht/CAnimatedMeshSceneNode.cpp b/source/Irrlicht/CAnimatedMeshSceneNode.cpp
index 15a0018..1195041 100644
--- a/source/Irrlicht/CAnimatedMeshSceneNode.cpp
+++ b/source/Irrlicht/CAnimatedMeshSceneNode.cpp
@@ -276,6 +276,7 @@ void CAnimatedMeshSceneNode::render()
#ifdef _DEBUG
os::Printer::log("Animated Mesh returned no mesh to render.", Mesh->getDebugName(), ELL_WARNING);
#endif
+ return;
}
driver->setTransform(video::ETS_WORLD, AbsoluteTransformation);