mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-09 15:28:18 +07:00
Fix for anim family with differing number of directions crashing on Layer.load(int)
This commit is contained in:
@ -328,10 +328,7 @@ public class Entity {
|
||||
if (DEBUG_COF) Gdx.app.debug(TAG, "" + cof);
|
||||
|
||||
boolean changed = updateAnimation(cof);
|
||||
if (changed) {
|
||||
dirty = Dirty.ALL;
|
||||
animation.setDirection(getDirection());
|
||||
}
|
||||
if (changed) dirty = Dirty.ALL;
|
||||
|
||||
if (DEBUG_DIRTY) Gdx.app.debug(TAG, "dirty layers: " + Dirty.toString(dirty));
|
||||
for (int l = 0; l < cof.getNumLayers(); l++) {
|
||||
|
Reference in New Issue
Block a user