mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 16:20:21 +00:00
check that the index is now -1; otherwise bad things happen
This commit is contained in:
parent
af41560c3f
commit
c376f3793e
@ -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…
x
Reference in New Issue
Block a user