Call setPlayerClass when the class has been chosen.

actorid
Jan Borsodi 14 years ago
parent cd3e976b7c
commit 404aacae1b

@ -326,7 +326,7 @@ void WindowManager::onPickClassDialogDone()
if (pickClassDialog) if (pickClassDialog)
{ {
pickClassDialog->setVisible(false); pickClassDialog->setVisible(false);
//environment.mMechanicsManager->setPlayerClass(pickClassDialog->getClassId()); environment.mMechanicsManager->setPlayerClass(pickClassDialog->getClassId());
} }
updateCharacterGeneration(); updateCharacterGeneration();
@ -344,7 +344,7 @@ void WindowManager::onPickClassDialogBack()
if (pickClassDialog) if (pickClassDialog)
{ {
pickClassDialog->setVisible(false); pickClassDialog->setVisible(false);
//environment.mMechanicsManager->setPlayerClass(pickClassDialog->getClassId()); environment.mMechanicsManager->setPlayerClass(pickClassDialog->getClassId());
} }
updateCharacterGeneration(); updateCharacterGeneration();

Loading…
Cancel
Save