Bugfix: animated textures would cause an assert failure.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4055 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2009-09-27 23:17:13 +00:00
parent 79a4b06f91
commit 9ebdf59fcd

View File

@ -448,6 +448,8 @@ bool Track::loadMainTrack(const XMLNode &root)
for(unsigned int i=0; i<track_node->getNumNodes(); i++)
{
const XMLNode *n=track_node->getNode(i);
// The have already been handled
if(n->getName()=="animated-texture") continue;
assert(n->getName()=="object");
model_name="";
n->get("model", &model_name);