v0.9.1c: fixed crash bugs caused by earlier 0.9.1c commits

This commit is contained in:
Evan Debenham 2021-01-12 18:19:01 -05:00
parent c3e16f3106
commit ecd93baffd
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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);