From aaa80d1eb0bdd804aee7ec62404cbe83726cf370 Mon Sep 17 00:00:00 2001 From: Jan Borsodi Date: Fri, 22 Oct 2010 23:51:53 +0200 Subject: [PATCH] Made sure race and class dialog shows the current player values. --- apps/openmw/mwgui/window_manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw/mwgui/window_manager.cpp b/apps/openmw/mwgui/window_manager.cpp index 466c85426..a2b3a786f 100644 --- a/apps/openmw/mwgui/window_manager.cpp +++ b/apps/openmw/mwgui/window_manager.cpp @@ -184,6 +184,7 @@ void WindowManager::updateVisible() removeDialog(raceDialog); raceDialog = new RaceDialog(environment, gui->getViewSize()); raceDialog->setNextButtonShow(raceChosen); + raceDialog->setRaceId(playerRaceId); raceDialog->eventDone = MyGUI::newDelegate(this, &WindowManager::onRaceDialogDone); raceDialog->eventBack = MyGUI::newDelegate(this, &WindowManager::onRaceDialogBack); raceDialog->open(); @@ -212,6 +213,7 @@ void WindowManager::updateVisible() removeDialog(pickClassDialog); pickClassDialog = new PickClassDialog(environment, gui->getViewSize()); pickClassDialog->setNextButtonShow(classChosen); + pickClassDialog->setClassId(playerClass.name); pickClassDialog->eventDone = MyGUI::newDelegate(this, &WindowManager::onPickClassDialogDone); pickClassDialog->eventBack = MyGUI::newDelegate(this, &WindowManager::onPickClassDialogBack); pickClassDialog->open();