diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/ChangeButton.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/ChangeButton.java index 31b32002b..8516f7bd2 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/ChangeButton.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/ChangeButton.java @@ -60,8 +60,8 @@ public class ChangeButton extends Component { protected void layout() { super.layout(); - icon.x = x + (width - icon.width) / 2f; - icon.y = y + (height - icon.height) / 2f; + icon.x = x + (width - icon.width()) / 2f; + icon.y = y + (height - icon.height()) / 2f; PixelScene.align(icon); } }