Permalink
Browse files

bug fixed

  • Loading branch information...
byang223 committed Apr 27, 2012
1 parent 192be1e commit c9075ad720a624738e362ea08c9de9303d0a4fe1
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/units/Unit.java
View
@@ -167,6 +167,7 @@ public void setInteraction(ArrayList<Interaction> interactionList) {
}
public void resize(int dx, int dy) {
+ if(this.getImage()==null) return;
setImage(ImageUtil.resize(this.getImage(), dx, dy));
}

0 comments on commit c9075ad

Please sign in to comment.