Skip to content

Commit

Permalink
MainState : add null checker to setSkin()
Browse files Browse the repository at this point in the history
  • Loading branch information
exch-bms2 committed Oct 28, 2019
1 parent d351c47 commit 740e4e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bms/player/beatoraja/MainState.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ public void setSkin(Skin skin) {
if (skin != null) {
for (IntMap.Entry<Offset> e : skin.getOffset().entries()) {
SkinOffset offset = main.getOffset(e.key);
if(offset == null || e.value == null) {
continue;
}
offset.x = e.value.x;
offset.y = e.value.y;
offset.w = e.value.w;
Expand Down

0 comments on commit 740e4e6

Please sign in to comment.