v0.9.1c: fixed crash bugs caused by earlier 0.9.1c commits
This commit is contained in:
parent
c3e16f3106
commit
ecd93baffd
|
@ -137,7 +137,11 @@ public class MagesStaff extends MeleeWeapon {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int buffedLvl() {
|
public int buffedLvl() {
|
||||||
return Math.max(super.buffedLvl(), wand.buffedLvl());
|
if (wand != null){
|
||||||
|
return Math.max(super.buffedLvl(), wand.buffedLvl());
|
||||||
|
} else {
|
||||||
|
return super.buffedLvl();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -482,7 +482,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void update() {
|
public void update() {
|
||||||
if (paused && !looping()){
|
if (paused && !looping() && ch != null && curAnim != null){
|
||||||
Animation cur = curAnim;
|
Animation cur = curAnim;
|
||||||
curAnim = null;
|
curAnim = null;
|
||||||
listener.onComplete(cur);
|
listener.onComplete(cur);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user