update
This commit is contained in:
@@ -91,7 +91,8 @@ void removeEntity(Scene *s, uint32 entityHandle) {
|
||||
if (parentNode != NULL) {
|
||||
for (EachIn(parentNode->children, i)) {
|
||||
if (parentNode->children.data[i] == entity->graphNodeHandle) {
|
||||
ListRemove(&parentNode->children, i);
|
||||
memcpy(parentNode->children.data + i, parentNode->children.data + i + 1, parentNode->children.length - i - 1);
|
||||
//ListRemove(&parentNode->children, i);
|
||||
graphNode->parentHandle = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user