v0.2.2b: fixed a bug where the assassin's wound animation would sometimes cause a crash
This commit is contained in:
parent
402f61aa76
commit
4ad2f689bd
|
@ -63,10 +63,12 @@ public class Wound extends Image {
|
|||
}
|
||||
|
||||
public static void hit( Char ch, float angle ) {
|
||||
Wound w = (Wound)ch.sprite.parent.recycle( Wound.class );
|
||||
ch.sprite.parent.bringToFront( w );
|
||||
w.reset( ch.pos );
|
||||
w.angle = angle;
|
||||
if (ch.sprite.parent != null) {
|
||||
Wound w = (Wound) ch.sprite.parent.recycle(Wound.class);
|
||||
ch.sprite.parent.bringToFront(w);
|
||||
w.reset(ch.pos);
|
||||
w.angle = angle;
|
||||
}
|
||||
}
|
||||
|
||||
public static void hit( int pos ) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user