From 7f85271ec38f497d4fdc925d2b16e9436e61e494 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 27 Jun 2011 10:44:22 +0000 Subject: [PATCH] Added assert to make sure the lod node is used correctly. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9105 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 c7800de71..7f74edc1d 100644 --- a/src/graphics/lod_node.cpp +++ b/src/graphics/lod_node.cpp @@ -86,6 +86,7 @@ void LODNode::add(int level, scene::ISceneNode* node, bool reparent) // and the location is disapparition needs to be deterministic if (m_detail.size() > 0) { + assert(m_detail.back()