We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b91fa6 + 2aac4d7 commit 5fb0034Copy full SHA for 5fb0034
rootex/utility/component_array.h
@@ -91,6 +91,9 @@ class ComponentArray
91
if (m_IsValid[i] && (m_Data[i].getOwner().getID() == entity.getID()))
92
{
93
m_IsValid[i] = false;
94
+ m_Data[i].onRemove();
95
+ m_Data[i].~Component();
96
+ memset(&m_Data[i], 0, sizeof(m_Data[i]));
97
m_ArraySize--;
98
return true;
99
}
0 commit comments