From 6db035e0aaf0ff3528748837835e959fea16d1ef Mon Sep 17 00:00:00 2001 From: JosiahWI <41302989+JosiahWI@users.noreply.github.com> Date: Mon, 4 Jul 2022 05:12:33 -0500 Subject: [PATCH] Fix null dereference reported by coverity (#115) --- source/Irrlicht/CAnimatedMeshSceneNode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Irrlicht/CAnimatedMeshSceneNode.cpp b/source/Irrlicht/CAnimatedMeshSceneNode.cpp index 15a00185..1195041f 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);