Ukendio / jecs

A fast, portable Entity Component System for Luau
https://ukendio.github.io/jecs/
MIT License
121 stars 20 forks source link

Prevent Iterator invalidation #62

Open Ukendio opened 2 months ago

Ukendio commented 2 months ago

Adding a new entity that satisfies the conditions of the query will cause the iterator to go on forever. This is the most dangerous case that could happen.

Other cases which cause UB are: