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
|
||||
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
|
||||
|
|
|
@ -482,7 +482,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
|
|||
|
||||
@Override
|
||||
public void update() {
|
||||
if (paused && !looping()){
|
||||
if (paused && !looping() && ch != null && curAnim != null){
|
||||
Animation cur = curAnim;
|
||||
curAnim = null;
|
||||
listener.onComplete(cur);
|
||||
|
|
Loading…
Reference in New Issue
Block a user