mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-21 20:18:14 +07:00
Fix for anim family with differing number of directions crashing on Layer.load(int)
This commit is contained in:
parent
8bbaec639b
commit
f17278b87b
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user