mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 10:23:56 +00:00
chargen generate class: fix result not being shown in review dialog
This commit is contained in:
parent
0aa01b93e2
commit
ff278ab4ec
1 changed files with 3 additions and 0 deletions
|
@ -708,6 +708,9 @@ void CharacterCreation::onGenerateClassDone(WindowBase* parWindow)
|
|||
if (mGenerateClassResultDialog)
|
||||
mWM->removeDialog(mGenerateClassResultDialog);
|
||||
MWBase::Environment::get().getMechanicsManager()->setPlayerClass(mGenerateClass);
|
||||
const ESM::Class *klass = MWBase::Environment::get().getWorld()->getStore().classes.find(mGenerateClass);
|
||||
mPlayerClass = *klass;
|
||||
mWM->setPlayerClass(mPlayerClass);
|
||||
|
||||
if (mCreationStage == CSE_ReviewNext)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue