junkdog / artemis-odb

A continuation of the popular Artemis ECS framework
BSD 2-Clause "Simplified" License
779 stars 112 forks source link

ComponentMapper#reclaimPooled can throw OOBE #305

Closed junkdog closed 9 years ago

junkdog commented 9 years ago
Exception in thread "LWJGL Application" java.lang.ArrayIndexOutOfBoundsException: 64 at com.artemis.utils.Bag.get(Bag.java:179) at com.artemis.ComponentManager.reclaimPooled(ComponentManager.java:99) at com.artemis.ComponentManager.create(ComponentManager.java:80) at com.artemis.ComponentManager.addComponents(ComponentManager.java:208) at com.artemis.World.createEntity(World.java:436) at net.mostlyoriginal.odb.archetype.ParticleImpl.create(ParticleImpl.java:112)
DaanVanYperen commented 9 years ago

Out Of Body Experience!

Namek commented 9 years ago

OOBE is too much. LD would be enough.

junkdog commented 9 years ago

Ludum dare?

Namek commented 9 years ago

Lucid Dreaming, heh.

junkdog commented 9 years ago

Fixed in https://github.com/junkdog/artemis-odb/commit/2b7db8849b1a8060619e71095e0ec1fc751bda2a