Fixed KRNode::Find, which was not working properly
--HG-- extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40215
This commit is contained in:
@@ -151,13 +151,13 @@ public:
|
||||
{
|
||||
T *match = dynamic_cast<T *>(this);
|
||||
if(match) {
|
||||
if(name.compare(match->getName())) {
|
||||
if(name.compare(match->getName()) == 0) {
|
||||
return match;
|
||||
}
|
||||
}
|
||||
|
||||
for(std::vector<KRNode *>::const_iterator itr=m_childNodes.begin(); itr < m_childNodes.end(); ++itr) {
|
||||
match = (*itr)->find<T>();
|
||||
match = (*itr)->find<T>(name);
|
||||
if(match) {
|
||||
return match;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user