Skip to content

Commit

Permalink
Fixed "New Dungeon" button not creating and switching to empty level
Browse files Browse the repository at this point in the history
  • Loading branch information
Marukyu committed Sep 23, 2016
1 parent 5c02854 commit 5a8e783
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Client/System/NEWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,10 @@ void NEWindow::onProcessWindow(const gui2::WidgetEvents& events)
{
dungeon->removeLevel(dungeon->getLevelCount() - 1);
}
dungeon->insertLevel(0);
levelPanel->setSelectedLevel(0);
switchToLevel(&dungeon->getLevel(0));
levelPanel->updateDungeon();
}

if (closeConfirmMessage->wasClosed() && closeConfirmMessage->getClickedButton() == 0)
Expand Down

0 comments on commit 5a8e783

Please sign in to comment.