v0.3.0a: fixed a crash bug with poison and loading a save

This commit is contained in:
Evan Debenham 2015-05-27 01:31:04 -04:00
parent 6f6cba893b
commit e794cfe5a1

View File

@ -77,7 +77,7 @@ public class Poison extends Buff implements Hero.Doom {
@Override
public boolean attachTo(Char target) {
if (super.attachTo(target)){
if (super.attachTo(target) && target.sprite != null){
CellEmitter.center(target.pos).burst( PoisonParticle.SPLASH, 5 );
return true;
} else