From 5b6e31639ce7c988533a0b6e44d116299afca34e Mon Sep 17 00:00:00 2001 From: auria Date: Mon, 13 Feb 2012 15:35:42 +0000 Subject: [PATCH] Potential crash fix git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10839 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/lod_node.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphics/lod_node.cpp b/src/graphics/lod_node.cpp index fe7cdf309..d3030b4f9 100644 --- a/src/graphics/lod_node.cpp +++ b/src/graphics/lod_node.cpp @@ -63,6 +63,7 @@ void LODNode::render() void LODNode::OnRegisterSceneNode() { if (!isVisible()) return; + if (m_nodes.size() == 0) return; // TODO: optimize this, there is no need to check every frame scene::ICameraSceneNode* curr_cam = irr_driver->getSceneManager()->getActiveCamera();