Potential crash fix

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10839 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-02-13 15:35:42 +00:00
parent e21f040919
commit 5b6e31639c

View File

@ -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();