Commit 985ccb6c authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko

Merge branch '914-runesholder-nullpointerexception' into 'V3.6.3'

Resolve "RunesHolder: NullPointerException"

See merge request !713
parents 9ea7c216 469f1439
......@@ -165,14 +165,14 @@ public class RunesHolder extends Group {
}
public void unfold() {
if (folded) {
if (folded && getStage() != null) {
for (Actor a : getChildren()) {
a.setTouchable(Touchable.enabled);
}
setTouchable(Touchable.childrenOnly);
toFront();
prevX = getX();
float stageWidth = getStage().getWidth() * (1-RunesGame.SIDEBAR_RELATIVE_WIDTH);
float stageWidth = getStage().getWidth() * (1 - RunesGame.SIDEBAR_RELATIVE_WIDTH);
float prevMid = prevX + getWidth() * 0.5f * getScaleX();
setScale(UNFOLDED_SCALE);
float newX = prevMid - getWidth() * getScaleX() * 0.5f;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment