Ndk/Entity: Fix a stupid mistake

Former-commit-id: cecdd2a6134f24ea0598628863605d7897cbf922
This commit is contained in:
Lynix 2015-06-07 12:13:41 +02:00
parent 261dffd931
commit 3e8d2e1e47
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ namespace Ndk
for (unsigned int i = m_componentBits.FindFirst(); i != m_componentBits.npos; i = m_componentBits.FindNext(i))
{
if (i != index)
m_components[index]->OnComponentAttached(component);
m_components[i]->OnComponentAttached(component);
}
return component;
@ -100,7 +100,7 @@ namespace Ndk
for (unsigned int i = m_componentBits.FindFirst(); i != m_componentBits.npos; i = m_componentBits.FindNext(i))
{
if (i != index)
m_components[index]->OnComponentDetached(component);
m_components[i]->OnComponentDetached(component);
}
component.SetEntity(nullptr);