mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-17 19:20:49 +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))
|
||||
{
|
||||
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);
|
||||
return n;
|
||||
}
|
||||
@ -310,7 +310,7 @@ namespace MWRender
|
||||
}
|
||||
if (osg::Sequence* sq = dynamic_cast<osg::Sequence*>(&node))
|
||||
{
|
||||
traverse(*sq->getChild(sq->getValue()));
|
||||
traverse(*sq->getChild(sq->getValue() != -1 ? sq->getValue() : 0));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user