From Fabien Dachicourt, bug fix to addChild(node,value)

This commit is contained in:
Robert Osfield 2004-11-23 17:07:48 +00:00
parent 4a1e494eb5
commit f213e473f3

View File

@ -56,8 +56,8 @@ bool Switch::addChild( Node *child, bool value )
if (_children.size()>_values.size())
{
_values.resize(_children.size(),_newChildDefaultValue);
_values[childPosition]=value;
}
_values[childPosition]=value;
return true;
}
return false;