paldepind / Kran

An entity system written in JavaScript.
MIT License
42 stars 5 forks source link

Non-empty Linked Lists sometimes end up with null head #5

Open VincentToups opened 10 years ago

VincentToups commented 10 years ago

Hi paldepind,

Very occasionally, I am unable to reproduce the bug reliably, I end up with linked lists returned by getEntityCollection which have a null head, but non-zero elements. Iteration over these linked lists via forEachWithComps obviously produces no execution of the callback, but creating new entities does seem to correctly put them into the entity collection. Any ideas?

paldepind commented 10 years ago

I haven't forgot this! I'll take a look as a soon as get the time :)