Index: cc/CCLayerImpl.cpp |
diff --git a/cc/CCLayerImpl.cpp b/cc/CCLayerImpl.cpp |
index 9068d31aaa6f76dab4e4af38643c0b6ec9595b77..d2bbff386c5c4df5b54df5af738ae5543e9c1b93 100644 |
--- a/cc/CCLayerImpl.cpp |
+++ b/cc/CCLayerImpl.cpp |
@@ -88,7 +88,7 @@ void CCLayerImpl::removeFromParent() |
m_parent = 0; |
for (size_t i = 0; i < parent->m_children.size(); ++i) { |
- if (parent->m_children[i].get() == this) { |
+ if (parent->m_children[i] == this) { |
parent->m_children.remove(i); |
return; |
} |