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:
parent
e21f040919
commit
5b6e31639c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user