From Fabien Dachicourt, bug fix to addChild(node,value)
This commit is contained in:
parent
4a1e494eb5
commit
f213e473f3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user