mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 08:41:35 +00:00
check that the index is now -1; otherwise bad things happen
This commit is contained in:
parent
af41560c3f
commit
c376f3793e
1 changed files with 2 additions and 2 deletions
|
@ -155,7 +155,7 @@ namespace MWRender
|
||||||
if (const osg::Sequence* sq = dynamic_cast<const osg::Sequence*>(node))
|
if (const osg::Sequence* sq = dynamic_cast<const osg::Sequence*>(node))
|
||||||
{
|
{
|
||||||
osg::Group* n = new osg::Group;
|
osg::Group* n = new osg::Group;
|
||||||
n->addChild(operator()(sq->getChild(sq->getValue())));
|
n->addChild(operator()(sq->getChild(sq->getValue() != -1 ? sq->getValue() : 0)));
|
||||||
n->setDataVariance(osg::Object::STATIC);
|
n->setDataVariance(osg::Object::STATIC);
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
@ -310,7 +310,7 @@ namespace MWRender
|
||||||
}
|
}
|
||||||
if (osg::Sequence* sq = dynamic_cast<osg::Sequence*>(&node))
|
if (osg::Sequence* sq = dynamic_cast<osg::Sequence*>(&node))
|
||||||
{
|
{
|
||||||
traverse(*sq->getChild(sq->getValue()));
|
traverse(*sq->getChild(sq->getValue() != -1 ? sq->getValue() : 0));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue