Closed Misiur closed 8 years ago
What it was: during changing entities (changing bits on families), you trap into the onEntityAdded
, then you create entity, and world mark it as dirty, the changed vector is growing during the changes updating phase, then ecx_debug
assert fired because start and finish set of entities count doesn't match. So it was just paranoia assert left by me long time ago.
So now I finally allow create/commit/destroy entities during the invalidation "change" phase.
Fix is on develop
. Please, try reproduce.
Works perfectly, thank you!
@Misiur you are welcome :)
I encountered a rather cryptic error:
It appears when I create a new entity in
OnEntityAdded
of some another system. I can't reproduce it in clean repository.world.create()
is all it takes, even with comented outworld.commit
and component adding code it happens. Any ideas how can I debug it further?