collinsmith / riiablo

Diablo II remade using Java and LibGDX
http://riiablo.com
Apache License 2.0
872 stars 99 forks source link

selectable Animation with null layers #51

Open collinsmith opened 5 years ago

collinsmith commented 5 years ago

274e756cce197de5ea445cfbbd9541dac7dd57f3 fixed a NPE that was being thrown for some null layers in monster cof animations. This check may ultimately not be needed in production, but I am documenting it to look into later as to the specifics of why/which these layers are null (the monsters looked correct in-game). Additionally, I want to look into COF.Layer.selectable so see its functionality -- maybe it's related.