Program: 163873
Project: 163873
Buggy source:
public WndGame(){
  super();
  addButton(new RedButton(Messages.get(this,"String_Node_Str")){
    @Override protected void onClick(){
      hide();
      GameScene.show(new WndSettings());
    }
  }
);
  if (Dungeon.challenges > 0) {
    addButton(new RedButton(Messages.get(this,"String_Node_Str")){
      @Override protected void onClick(){
        hide();
        GameScene.show(new WndChallenges(Dungeon.challenges,false));
      }
    }
);
  }
  if (!Dungeon.hero.isAlive()) {
    RedButton btnStart;
    addButton(btnStart=new RedButton(Messages.get(this,"String_Node_Str")){
      @Override protected void onClick(){
        GamesInProgress.selectedClass=Dungeon.hero.heroClass;
        InterlevelScene.noStory=true;
        ShatteredPixelDungeon.scene().add(new WndStartGame(GamesInProgress.firstEmpty()));
      }
    }
);
    btnStart.textColor(Window.TITLE_COLOR);
    addButton(new RedButton(Messages.get(this,"String_Node_Str")){
      @Override protected void onClick(){
        InterlevelScene.mode=InterlevelScene.Mode.DESCEND;
        Game.switchScene(RankingsScene.class);
      }
    }
);
  }
  addButtons(new RedButton(Messages.get(this,"String_Node_Str")){
    @Override protected void onClick(){
      try {
        Dungeon.saveAll();
      }
 catch (      IOException e) {
        ShatteredPixelDungeon.reportException(e);
      }
      Game.switchScene(TitleScene.class);
    }
  }
,new RedButton(Messages.get(this,"String_Node_Str")){
    @Override protected void onClick(){
      try {
        Dungeon.saveAll();
      }
 catch (      IOException e) {
        ShatteredPixelDungeon.reportException(e);
      }
      Game.instance.finish();
    }
  }
);
  addButton(new RedButton(Messages.get(this,"String_Node_Str")){
    @Override protected void onClick(){
      hide();
    }
  }
);
  resize(WIDTH,pos);
}

Fixed version (ground truth):
public WndGame(){
  super();
  addButton(new RedButton(Messages.get(this,"String_Node_Str")){
    @Override protected void onClick(){
      hide();
      GameScene.show(new WndSettings());
    }
  }
);
  if (Dungeon.challenges > 0) {
    addButton(new RedButton(Messages.get(this,"String_Node_Str")){
      @Override protected void onClick(){
        hide();
        GameScene.show(new WndChallenges(Dungeon.challenges,false));
      }
    }
);
  }
  if (!Dungeon.hero.isAlive()) {
    RedButton btnStart;
    addButton(btnStart=new RedButton(Messages.get(this,"String_Node_Str")){
      @Override protected void onClick(){
        GamesInProgress.selectedClass=Dungeon.hero.heroClass;
        InterlevelScene.noStory=true;
        GameScene.show(new WndStartGame(GamesInProgress.firstEmpty()));
      }
    }
);
    btnStart.textColor(Window.TITLE_COLOR);
    addButton(new RedButton(Messages.get(this,"String_Node_Str")){
      @Override protected void onClick(){
        InterlevelScene.mode=InterlevelScene.Mode.DESCEND;
        Game.switchScene(RankingsScene.class);
      }
    }
);
  }
  addButtons(new RedButton(Messages.get(this,"String_Node_Str")){
    @Override protected void onClick(){
      try {
        Dungeon.saveAll();
      }
 catch (      IOException e) {
        ShatteredPixelDungeon.reportException(e);
      }
      Game.switchScene(TitleScene.class);
    }
  }
,new RedButton(Messages.get(this,"String_Node_Str")){
    @Override protected void onClick(){
      try {
        Dungeon.saveAll();
      }
 catch (      IOException e) {
        ShatteredPixelDungeon.reportException(e);
      }
      Game.instance.finish();
    }
  }
);
  addButton(new RedButton(Messages.get(this,"String_Node_Str")){
    @Override protected void onClick(){
      hide();
    }
  }
);
  resize(WIDTH,pos);
}